http://www.phys.ethz.ch/~franklin/Projects/dphys-pkgtools/Logfile author Neil Franklin, last modification see last entry near bottom copyright ETH Zuerich Physics Departement use under either modified/non-advertising BSD or GPL license background is the dphys2 project, read its Logfile at: http://www.phys.ethz.ch/~franklin/Projects/dphys2/Logfile as part of that wrote these tools to make and distribute packages here only log of the events pertaining to making this tool 2002.06.20 Thu quickly showed heeb ideas with dphys-host-* packages and dphys-task-* 2002.12.05 Thu sarapis Beat set up an mirror/debian-local/dists/woody/local/* directory set debconf-preload to woody/local and CONF_DEBDIR_LOCAL to mirror/debian-local 2002.12.12 Thu from Beat links about how to make Debian packages, from Debian Weekly News 2003.01.09 Thu dphys2 milestone 1 is reached, make archive copy to ../dphys2-20021218 discussion with Elmar about what the package management should do grouping of machines, base processor dependant, above place dependant with ability to define machine specific extensions discussion with dsbg, today a central package list and host local lists all fed into apt-get, to be resolved inclusive dependant packages he thinks that tasksel-like packages are the way to go this fits my ideas about site/group/host package lists, using dependances 2003.01.10 Fri look at links I got from Beat, from Debian Weekly News read http://www.kclee.com/clemens/unix/HowToCreateYourOwnDebianPackage.html is a howto for simple personal packages, try it using crashed.8 man page shows single file project, good as intro file crashed.8 in crashed_19990411-1_all/usr/share/man/man8 crashed_19990411-1_all/DEBIAN/control for package info dpkg-deb --build __all gives __all.deb, dpkg -i installs it, works added crashed_19990411-1_all/usr/share/doc/crashed/copyright, from man source added crashed_19990411-1_all/DEBIAN/[postinst|prerm] for doc->share/doc link use fakeroot dpkg-deb --build crashed_19990411-1_all for file owner = root added crashed_19990411-1_all/usr/share/doc/crashed/[changelog.gz| changelog.Debian.gz] for historical data program and debianisation run lintian over it, complains not may gzip compression and that email addresses are not Name started http://www.debian.org/doc/maint-guide/, chapter 1 is the official giude for making real packages, try it using VirtexTools 2003.01.16 Thu Conference how we will be continuing development top priority is as fast as possible until first installs are possible today all have the same packages, for the beginning leave away hierarchical only phys-site and all host-specific (fetch specific kernels) do an apt-get update/upgrade by cron every night and on every boot after base install register above scripts and do an reboot I have got to investigate getting in debconf and config before questions for testing this use system with just less (user) and ssh (server) packages Beat will for next Thursday set up an reference box look at more links I got from Beat, from Debian Weekly News from the infrastructure.org people looking for .deb and config packager 2003.01.17 Fri further with http://www.debian.org/doc/maint-guide/ but do dphys2 as example, because actually usefull for us while going through chapter 4 decided that this is too complicated use the simpler method used for "crashed", as it is good enough still read rest, just to see if there are any usefull tips in there perhaps provide DEBIAN/conffiles with setup-dphys2 in it, also DEBIAN/docs or just put in what is in the "minimal package" done with "crashed" 2003.01.23 Thu start making automatic package install on hagrid, first without config stuff made an site-ethz-phys package, ./packages/site-ethz-phys_20030123-1_all.deb copied package over to hagrid, deinstalled tcsh and less tried to install, complains about tcsh and less dependancy, ssh OK so the automatic fetching of dependant packages seems to not work Answer from Arthur Korn, dpkg does not auto-load, only tests, need apt-get 2003.01.24 Fri started an Makefile for package stuff, make site for the dpkg-deb --build script makehostpackage to generate host packages, with all name/date variance test run package, also works until crashes into dependancies look at how to put packages into debian-local, where to put what dists/woody/main/binary-alpha/[Packages|Packages.gz] for control file stuff pool/main/x/xpack/xpack_ver_all.deb for the actual archives put packages into /pub/debian-local/pool/main/s/site/* and h/host/* generate Packages list with dpkg-scanpackages pool/main indices-local/override.woody.non-free \ > dists/woody/local/main/binary-i386/Packages gzip < dists/woody/local/main/binary-i386/Packages \ > dists/woody/local/main/binary-i386/Packages.gz test run 65 apt-get update apt-get install host-hagrid fetches site-ethz-phys, less, tcsh, installs all of them, works script after making host package, delete generated work directory host-hagrid .deb only in debian-local, not in home directory script added -l option for setting debianisation level, and command line checks made an host-hagrid with level 2, apt-get update apt-get upgrade works move all site-ethz-phys stuff and Makefile to debian-local, none in home makehostpackage rename config vars to CONF_* and put them in setup-dphys2 added makehostpackage to Makefile tar and ci, and to index.html.en 2003.02.06 Thu look at docu how the install process works, when scripts are called man dpkg points to Debian Policy Guide, chapter 6, read that potato is chapter 6 last one, not right, use woody, 13 chapters chapter 6.5 is what I wanted to know, 3. 2. preinst before unpacking but only gives details for one specific package, not relative to Depends: but other source says that all unpacks happen, then all postinst so I assume that preinst happens before all unpacking starts, risk it 2003.02.07 Fri make an test preinst script, for ssh, fill debconf, search docs on how to there exists debconf-loadtemplate, but is forbidden from maintainer scripts and config files could even be in postinst, after Debian did all its stuff this looks the easiest, get all in with Depends: then normal script mods this way is also easiest for uses without learning debconf stuff 2003.02.13 Thu dpkg-deb --build is reversed with --extract and --control /DEBIAN dbootstrap added script to call to apt-get install host-${CONF_HOSTNAME} /usr/local/base-config/78hostpackage 2003.02.14 Fri INSTALL added about triggering autoload of host package, and creating it put example configuration file (/root/.cshrc) and config edits (/etc/passwd root bash->tcsh) into site package (re-)make package and Packages on server remove old tcsh package apt-get -y --purge remove apt-get update; apt-get clean: apt-get -y install, works 2003.02.20 Thu makehostpackage added option -s to set site package name code for handling multiple options in any order 2003.02.21 Fri discussion about package installs and upgrades, Beat asks why site package is because of using apt-get update/upgrade and automatic hierarchy needs for each host a package, but that can be automated problem that kernel 2.4 needs to be in and running (reboot) before some other package can even be loaded/installed sent links to the infrastructures.org bootstrapping and turing texts to all while there read some more of their texts 2003.02.28 Fri policy decision, all our packages will be named dphys-* makehostpackage don't use setup-dphys2, not part of system setup, local tool renamed host-hagrid to dphys-host-hagrid, changed makehostpackage to add dphys- renamed site-ethz-phys to dphys-site-neil-experimental, changed makehostpackage put my pubkey in test site package, to test that, works, no password any more moved all test packages from pool/* to disks/*, as dpkg-scanpackages warning modified /pub/debian-local/Makefile, added contrib and nen-free targets 2003.03.07 Fri new makepackage script, starting with copy of makehostpackage started with designing functions that should go in it 2003.03.14 Fri moved dphys-site-* and dphys-host-* packages to non-free as they contain config data that in future may be secret (keys) dphys-site-* stuff to build package in my home, copy *.deb to server design what functions and options makepackage script should have separatable steps generate/pack/tidy, new/clone, set dependencies 2003.03.20 Thu makepackage implemented options and tests for separate generate/pack/tidy steps structured CONF_* DEBUG_* SYS_* settings, added DEBUG_PRINT_STEP design new/clone, no "new" option (is default anyway), just -c clone option clone allow full or just base name (later use newest version) done option processing for -c option -b analog to -s, just set CONF_SITE_PKG to empty string same -d just add this further package to existing CONF_SITE_PKG 2003.03.21 Fri makepackage extend hostname (no "-" in it) to packagename makepackage now can fully replace makehostpackage, delete old stuff index.html, RCS, Makefile ci and tar, delete makehostpackage, ln -s cloning, find package name, expanded as above, find newest version put all this in after files generated, overwrite new from clone package then back-patch the control file with its new name and version improve help text, mention name expansion redone option processing to allow combined -xyz options 2003.03.27 Thu discussion with heeb and dsgb about using makepackage, organising our setup got it clearly over how what files belong where will use /etc/dphys2/* and postinst copy into real place from there daily update/upgrade cron will also run postinst heeb suggests als an test for local changes, warning mail dsbg did test runs, name trouble, had added hostname to prefix var has trouble with permissions from, need local for setup-dphys2 but wants packages and makepackage in NFS home dir told him that both can be split, makepackage is separate this suggests making makepackage a separate project, or separate download OTOH when installed as .deb package, makepackage will be a command in path will have to redesign options meaning, particularly to allow combinations such as add to existing, or clone and add stuff at same time preferably start with no option = do nothing, then specify aoo one wants 2003.03.28 Fri dsbg improvement suggestions for makepackage -g should make work directory without version number -p shall update version in control and pack with version name in .deb default to -p, as -g and -t are dangerous, or better default to print help -g redid control file for him, kill contents he has added take out automatic -gpt generation when no options reorder options is row of working, g(bs) or c, d and f, p(l), t change so that directory is just package name, version add on -p so also no need to clone a package just to make an new updated version all date stuff is only used for making version number, put all in -p also make changelog.Debian at this time, only make changelog on -g or -c 2003.04.03 Thu makepackage -d changed to add further Dependencies at any time not just extend line while creating an package tidy up implementation/variation for clone vs normal generate adapt cloning to now having version-less work directory names implemented expand .deb -> work directory, test fails on option processing rewrote option processing with case..esac, test for *) and give error 2003.04.04 Fri looking for makepackage -e bug, $# is 2 instaed of 1, the -e is not being used seems to be the while [ x`echo $1 | cut -c 1` = x- ] ; do -e is an option for echo, -- not recognized, -E should work but does not rename this option to -x (e)xpand, which does not collide -v verbose for selecting of one wants DEBUG_PRINT_STEP output not only dpkg-deb --build output, no option to stop it noticed dpkg-deb --info, make an -i option for it -r remove existing/old .debs, can be used before -p or with -t to delete all decided to not put an -f file into makepackage, let users do this themselves this requires flexibility, where the script is inferior to shell 2003.04.11 Fri makepackage rearrange code, that cloning behaves properly first unpack, then only gen copyright, then changelog, then preinst/postrm then make or clone control file, after this rest of stuff clone add also copying of normal files to the new package this also includes changing documentation directory name made -cpv new dphys-site-franklin-experimental cloning dphys-site-neil-experimental (which was actually site-ethz-phys) made -gpv new dphys-host-hagrid using that installed on server, apt-get update/upgrade gives error message needs dist-upgrade because dependency changed of site package name delete old now unused packages, not needed any more deleted old Makefile as makepackage -p has long taken over its job 2003.04.17 Thu heeb discussion what needs doing in host/site packages unpacked dphys-site-dsbg-experimental, makepackage -x failed 2003.04.24 Thu makepackage -x failled because full -version_all.deb, should be without add remark about this to help text, fixed this in current looking in dsbg site package noticed that postinst and prerm "share" broken is set of bugs in makepackage, "$1" instead of \$1 and missing ${PKG_NAME} 2003.04.25 Fri dsbg and me moved all our package building stuff into /pub/debian-local/build changed makepackage so that version number ist yyyymmdd.hhmmss testing that found bug in makepackage, repeated -p destroys changelog file so that is why dphys-site-dsbg-experimental lacks one, fixed it index.html added in milestone 2 this as bug #3, and report it as fixed 2003.05.09 Fri dphys-site* are diverging, with may edits and dsbgs additions decided with heeb to switch from build directory to using CVS project name dphys-build, my local copy in ~/src/dphys-build move our auxillary links to /debian-local, link to them from ~/src/... move my stuff from /pub/debian-local/build to ~/src/dphys-build dsbg stuff already in CVS, rmdir /pub/debian-local/build checked in my packages, with exeption of dphys-site-franklin-temp 2003.05.15 Thu makepackage -p added code to eliminate and recreate CVS directories 2003.05.23 Fri heeb further discussion, have init.d+cron do dphys-admin script do everything from that, controlled install, incl kernel and "pre" img file this eliminates site package, with host->kernel list also host packages and with that also kernel meta packages, so only dphys-admin package 2003.06.05 Thu dsbg asks if makepackage -c copy is now workung, as help says it doesnt 2003.06.06 Fri makepackage fixed help output about -c copy option 2003.06.12 Thu dsbg feature wish, makepackage feature to add lines to DEBIAN/control dsbg bug report, changing Architecture: to i386 gives makepackage error message is lintian, looking for an *_all.deb file, called allways with all add -a arch option to set to other than all, simply set SYS_ARCH that then automatically sets it right in control and does lintian right set/help code consistency changed -l level to also use SYS_PKG_LEVEL variable dsbg bug report, site package postinst cp -a ${FILES} / needs /. after } same in host packages cp -a ${FILES}/* / changed * to . with -b option there should be no Depends: line, test and facultative make -d must test for Depends: and extend or add line reworked help into an -h option, unknown option or no parameter call this CONF_PKG_CHLOG_* were in text, not at top, moved at same time put outdated Description: into CONF_* vars at top, easier change 2003.06.13 Fri added DEBIAN/control editing ability, add/extend option lines, like -d used for Recommends:, Conflicts:, Replaces:, Provides:, etc lines 2003.06.26 Thu /pub/debian-local/Makefile extended for i386+all+src in main+contrib+non-free 2003.07.03 Thu debian-local some unsorted packages, out them into correct directories running make (dpkg-scanpackages) complaints that override has misc, fixed /pub/debian-local/Makefile added code to automatically generate override files scan the packages Section: and Priority: fields into new override.* file for binary-i386 same file as -all, so not rm/touch/chmod of override file when no files in an section, sh takes * literally, dpkg --info screams so in all: target disable sections without packages in them 2003.07.04 Fri /pub/debian-local/Makefile split override from scanpackages, separate target only 6 of these, not 9, as -all packages are all linked to in -i386 drop code for scanning the -all directory into override selectively run scan code, only where we presently have packages fixed bug, touch/chmod664 for all 6 did main, not the other 5 add code to automatically link all -all into -i386 directory, and remove old propper create override file for source packages, no dpkg --info also no priority field in this override file in all override files added local/ before section, as in Debian contrib + n-f scan source packages with dpkg-scanpackages -> dpkg-scansources and store data in Sources and Sources.gz files problem that scansources complains about indices/*.src format 2003.07.10 Thu /pub/debian-local/Makefile scansources complains about indices/*.src format is because I wrongly added local/ to section, analog to contrib and non-free but we have all 4, local/ is analog to updates or non-us, not in indices removed local/, still error, man dpkg-scansources wants same format as bin changed to that, it works, but original Debian site format is without(!) now just one error, dphys-mozilla duplicate, is _1.2.1-1.dsc and _1.4.0-1.dsc so run finisched override file through uniq, that now works, no warnings index.html.en update with all the site specific stuff we have done as far as it is usefull for other sites, added Makefile.debian-local improved documentation in Makefile.debian-local for users making new server 2003.07.31 Thu dsbg notice that Makefile.debian-local no i386->all links for non-free was disabled because of error as there were none, now are, re-enabled 2003.08.05 Tue (re)read "Debian New Maintainers' Guide", for new source package based .debs 2003.08.14 Thu continued (re)read "Debian New Maintainers' Guide" 2003.08.21 Thu investigte how dsbgs dphys-hostbuild works, what it does dphys-hostbuild/lib/genlist.sh is just fetch host specific data dphys-hostbuild/BUILD-sh builds directory structure, then in dir run debuild main thing run by debuild(dpkg-buildpackage) is /install.sh that . executes user edited /config and generates all real files 2003.08.22 Fri further investigte how dsbgs dphys-hostbuild works debuild actually runs /debian/rules Makefile, that runs /install.sh is a standard Debian example rules fule, using dh_* stuff, not transparent dh_* many names, need each lookup in man pages, replace with direct code Debian standard seems to be dphys-buildpackage->debian/rules->dh_* and dh_builddeb->dpkg->dpkg-deb to actually make the package dphys-buildpackage is from dpkg-dev, tools for makeing source packages, use dsbg uses debuild, which may do dphys-buildpackage or direct debian/rules is from devscripts package, like debhelper added on stuff, don't use decided on structure for generating packages, direct in CVS dir: dphys-host-`hostname`/ # source dphys-host-`hostname`.tar.gz # make tar of source dphys-host-`hostname`/debian /tmp /DEBIAN # debianisation and work dphys-host-`hostname`.deb # resulting package dphys-host-`hostname`.dsc # resulting description dphys-host-`hostname`.changes # resulting ??? process stuff in 2 stages: makehost hostname # fetch data, gen source + .tar.gz, user edit (opt?) makesrcpackage # run ./configure + make + make install + deb -> .deb etc 2003.08.28 Thu build first package, use crashed.8 man page as example, with like old tools looked at $DESTDIR stuff, is not $PREFIX but before it Makefile set to empty, in dpkg-buildpackage -> debian/rules to debian/tmp like heebs dphys-find-printer add an upstream README and Makefile actually crashed.README and crashed.Makefile with symlink Makefile Makefile non-root install abort with exit 1, also same in dphys2 Makefile put stuff in debian/* : changelog, control, copyright 2003.09.04 Thu continue building first package, debian/* : rules in debian/rules conver DNMG example to non-dh_* usage moved all Debian specific logic (installing README) into debian/rules Makefile changed crashed.README -> README, crashed.Makefile -> Makefile added make uninstall and make tar targets for compelteness, tested running make install or debian/rules install needs root, no root-squash move all stuff to non-NFS /scratch, tidy up there /scratch/$user/src/* Makefile can not call shell with \n in input, no here documents possible put postinst and prerm as files in debian/ package compiles and generates and installs 2003.09.05 Fri continue with managment of first package, source/dsc/diff/changes undebianised source and tar, then debian renamed source then re-add Makefile changes and debian/* stuff, generate all file pgp crashes because no key, dpkg-buildpackage aborts, use -uc -us lintian error, no changelog.Debian.gz, was as changelog.gz, rename warns because version 3.5.2 newer than it knows, potato problem, use maine requires new install lintian, emacs, dh-make warns no Section/Priority in binary control, add -isp to dpkg-gencontrol rebuilding on maine dpkg-buildpackage now dislikes 3.5.2, aborts dh_make also generates with 3.5.2, so not version number problem remove empty Build-Depends: line, now it works makes .orig.tar.gz, -2.diff.gz, -2_all.deb, -2.dsc, -2_i386.changes -2_i386.changes is i386 despite -2_all.deb being all, no use anyway, delete heeb has only .tar.gz, no .orig.tar.gz and -2.diff.gz, Debian-specific this is sensible, switch to doing it this way, delete .orig.tar.gz rebuild automatically now makes an .tar.gz, no .orig.tar.gz or -2.diff.gz copied .deb, .tar.gz, .dsc files into local package server, made indexes apt-get update and apt-get install crashed works on hagrid and maine 2003.09.12 Fri made straigt forward script to generate an source packages files with a few thigns (pkg name, date, config, ...) parameterised var names and contents taken from old makepackage, so later easy merge 2003.09.18 Thu makesrcpackage test impored changes from crashed edits at home Makefile (no effect as changed code not in generic package) postinst+prerm (\$1 and $${PKG_NAME} already fix, deleted senseless comments) rules (eliminated unneeded PKG_NAME= and fitting ; \ to make it usable) solve escaping problem, postinst + rules lines with \ smashed, use \\ test run makesrcpackage (test), changelog date format wrong, ISO->RFC runs now until test if user is root, that fails, despite using `whoami` 2003.09.25 Thu makesrcpackage, merge test script logic with makepackage interface/process drop generating the pretended "upstream" changelog, native Debian packages drop default Depends: as main use of host packages is now moot just use -d to add any Depends: one wants, no -s or -b to set it either use -s to set SYS_SECTION var, default admin (not misc as up to now) eliminate ${DOCDIR} and ${DEBDIR} as these are fixed by standard rename ${PKGDIR} to ${PKG_DIR}, structured like other variables add DO_GEN making an upstream package, before debianising starts introduce new ${DEB_DIR} for ${PKG_DIR}/debian, convert while working through move making control file up before rest debianising, extend it for source also change modifying an existing one, at same place compute package version drop generatiogn filename, done by Debian drop fixing version in control file, as it is not there, taken from changelog changelog save possible existing one and tag it onto end of new one 2003.09.26 Fri further with makesrcpackage, completing it added making debian/rules, direct after making postinst/prerm do this while generate, not while packaging, so user can change it converted from @PKG_NAME=\`grep ... and \$\${PKG_NAME} to ${PKG_NAME} converted extract to use the source tar ball, not the .deb (lacks stuff) move expand stuff to after similar clone stuff, part fixed that pack section taken all run-*: from rules and put them directly in script as they are not part of what debian expects in an rules file move cloning (and extracting) after debian directory made not just modify control, but also package name in postinst/prerm and rules was bug in old makepackage, corrected old program also for postinst/prerm heeb/dsbg Discussion about dphys-host-* packages, too much work to make/change they now only contain ssh Keys and config vars file for dphys-setup-* so better just configs and keys as http://configserver/xxx/`hostname`/config and have the dphys-setup-* source it, and use the set variables so all machines same packages, no dphys-host-* packages, just dphys-site exemption is dphys-kernel-* as a package can not chose and apt-get annother in endfirstrun put in open apt-get which gets list from http://.../config source .../config; apt-get install `echo DEPENDS_ROOT` this shall contain dphys-kernel-*, dphys-site and host specific additions 2003.10.02 Thu test makesrcpackage, improve output, formatting of script header lines for too long copyright line, want line break, need # after break in scripts do not want # in text files, use `sed << EOF2 ...` inside here document additional Depends: or other options belong in binary part, not source part clone does not convert all mentioning of package name 2003.10.03 Fri test makesrcpackage, fix remaining clone bugs, rename in Makefile and README up clone these after make these, so clone before make upstream, debdir also change all sed rename package operations to use "g", for mult on one line cloning debian/control missing rm debian/.control missing renamed makesrcpackage to makesourcepackage fount that cloning does not set 755 for postinst/prerm and rules, added put in DEBUG_*= option for not deleting temp files (.../debian/temp/*) corrected referrences to .deb to package files, as now multiple files convert existing binary packages to using makesourcepackage dsbg leave old hosts arizona,bludger,dudley (will be deleted later) do as last with him site (he is actively working on it) every package that is converted and on server, remove from CVS do all other dphys-build/*/DEBIAN: admin, host-hagrid, ide-dma, reboot, site-franklin-experimental, swapfile, user-info additions to makesourcepackage, make removing *.changes file an CONF_* option add -u upload function, for uploading files to our local Debian mirror this gets rid of awfull link farms in /pub/debian-local/ and dphys-build also call make to update package list file, Makefile added targets for this parallel to -u also -f fetch to apt-get source the package this needs correcting the packagename-version dir to just packagename 2003.10.24 Fri makesourcepackage fix -u to go to proper main/contrib/non-free section this info is also contained in the control Section: variable up to now this assumed to be only subsection, massive bug, correct it split ${SYS_SECTION} into main and sub section before using it 2003.10.30 Thu makesourcepackage -u test, problem was file access rights, corrected but also trying to delete non-existing files, put in an test for that also possibly directories for the particular Section: not existing, make them makesourcepackage -u test, when -g -s and then later -p -u places wrongly change -u to get section it uses from control file Section: line discussion heeb about implementing version number and changelog entry when -p he prefers to edit all in emacs changelog mode, then run without generating so use the top changelog entry, facultative add an entry and then use that 2003.10.31 Fri makesourcepackage make version number stuff facultative DATE_NUM and DATE_RFC only for changelog, so move/integrate there remaining DATE_STAMP only for DO_GEN last modification, so move to there merged make version number into make changelog, as only used there changed option -l from level to log, for trigering changelog and log text if [ "x${DO_CLOG}" != x ] fouls up on multi-word log text same should be for -d depends and -o option, they use "x${DO_*}" when generating touch an empty changelog file, for emacs dired users to open merge the paired make/generate and close sections, tidy comments packaging test if no changelog entry, if so abort with error message 2003.11.07 Fri makesourcepackage -c bugfix, test all files if they exist, before sed-ing postinst|prerm also added preinst and postrm for renaming tidying up, makesourcepackage -r dphys2-swap, gave "no option" did -t, all dphys2-swap gone (but on package server), fix -r false error 2003.11.13 Thu makesourcepackage added test for ~/.gnupg or ~/.pgp and have dpkg-buildpackage sign packages if either is here makesourcepackage added test / at end of package oder clone name, strip it same if _ in name, strip version stuff after it, just base name help added comment on using init.d file, and calling it while -p makesourcepackage moved -r remove step to after -u upload, more usefull Makefile.debian-local complete process for contrib, now there are src there 2003.11.14 Fri dsbg bug report, makesourcepackage -c error: dphys-local-sound=dphys-local-sound: command not found was from / and _ elimination, ${var}=..., oops, corrected to var=..., works 2003.11.20 Thu makesourcepackage -g when debianising existing project directory don't overwrite existing Makefile and README files dphys2-swapfile added an example config file in /etc/default/dphys2-swapfile extended makesourcepackage to install such an config if existant 2003.12.04 Thu heeb dislikes case makesourcepackage in init.d as it confuses binary-only users who do not understand it, can not debug make separate script, for config only in one place have this modify init.d changed makesourcepackage to call this separate script move all init.d, default, conffiles stuff to the script 2003.12.12 Fri makesourcepackage -u bug determines architecture all vs i386 wrongly is because when not -g -s and -u in same run, ${SYS_ARCH} set to default same bug as on 2003.10.24 Fri with ${SYS_SECTION}, same fix but grepping ${DEB_DIR}/control only works if package is available unpacked better read info from package file to be uploaded, dpkg -f ${PKG_DEBNAME} this also solves problem of -u not finding /debian/config when foreign made package is in an - dierectory 2004.01.16 Fri makesourcepackage improved some comments, in option parsing 2004.02.19 Thu dphys2 release 4th milestone, copy to ../dphys2-20040219, make tar file of it started new RCS archive with revision 4.0 (unchanged milestone 4) 2004.02.26 Thu makesourcepackage -u add suport for debianising non-msp packages also upload .diff.gz file if there is one there 2004.03.11 Thu present state archived as RCS revision 4.1 2004.03.18 Thu convert dphys-admin, postinst/postrm from dphys-admin/debian/makesourcepackage is few details (runlevel) embedded in lots of boilerplate code, split just file init.d -> init.d.2.25, then have standard script test/use name add it to debian/conffiles, then modify postinst, generate/modify postrm also copy defaults file if one is there, and add it to debian/conffiles needs expansion of makesourcepackage-made debian/rules to automatically do it test/copy defaults and add it to defailts, same init.d.*RUN.*SEQ 2004.03.19 Fri continue convert dphys-admin, expansion of makesourcepackage-made debian/rules so that it does the init.d modifications to postinst and postrm sh->make->sh quoting for an sed with modifies 3rd sh looks hairy perhaps better to try with dh_*, can hide user-must-delete mess with ifs started rewriting makesourcepackage debian/rules section with dh_* 2004.03.25 Thu continue convert makesourcepackage debian/rules to use dh_* dh_installinit with -- defaults or -- $PARAMS from #@rc.d@ line dh_installcron and dh_installman with file tests dh_installchangelogs with tests for upstream or native changelog mode 2004.03.26 Fri continue convert makesourcepackage debian/rules to use dh_*, done rest test shows attempt to find commands DEB_BUILD_OPTIONS and findstring is piece of non-comprehensible dh_make generated code, from manual need quoting, else shell interpreted instead of inserted into rules file complaints about no debian/package.init and debian/package.cron.* is because `` being executed at script runtime, not getting into rules file no need for premade postinst/prerm files any more, delete generate keep clone for in case user is cloning old package that used them continue convert dphys-admin, generate rules file, add @rc.d@ to init script moved program into main dir, inconsistency Makefile for prog vs dh_* for man makesourcepackage debian/rules eliminate dh_installman, allways in Makefile makesourcepackage Makefile added vars for bin, sbin, man1 and man8 dirs 2004.04.01 Thu dphys-admin test runs, makesourcepackage syntax bugs and typos dsbg usage suggests ssh instead of NFS for upload, more site independant dito good for makeroot, installpxe and for makesourcepackage uploads 2004.04.08 Thu makesourcepackage upload with ssh/scp, same CONF_UPLOAD_TO / SYS_OWN* structure changed to also generate dir srtucture, copy files into it, scp all at once for this gave up feature of deleting old versions, perhaps better so anyway for package index update, put entire command as CONF_*, so user settable should allow many people to do whatever there local package server needs 2004.04.22 Thu uploading dphys-admin with makesourcepackage -u fails, copies loads of stuff is because I already have an upload/ directory, links in that dereferenced would have also been killed if allowed to run to end switch to using /tmp/makesourcepackage.$$.upload, UPLOAD -> TO_UPLOAD 2004.04.23 Fri updated index.html.en with changes since milestone 4, added dphys-admin present state archived as RCS revision 4.2 2004.05.14 Fri 20dphys-admin bug, debian/rules needs $${VAR} to fix, done, new vers, uploaded altered makesourcepackage to generate debian/rules like this 2004.06.10 Thu makesourcepackage separate project, as only making packages, not installing dito also Makefile.debian-local in that project, as used together become togehter package dphys-pkgtools (makesourcepackage and makelocalsite) made FAQ, INSTALL, (this) Logfile makesourcepackage -g for new Makefile and README and debian dir for project copy in makesourcepackage and its RCS file index.html.en, link to old makepackage, linked from projects and startup page make tar, generating standard .tar.gz file wrote first revision of man page for makesourcepackage.1 Makefile compile/install it, and ci and tar of it debianise project, debian/control is missing Build-Depends-Indep: on debhelper is missing in makesourcepackage script which was used here, added it there appart from this nothing needed, as no init.d or cron jobs, present no config present state archived as RCS revision 4.3 2004.06.11 Fri makesourcepackage[.1] tidy up help text and man page, remove outdated stuff delete outdated debian/makesourcepackage remark, and update site specific eliminate problematic CONF_HOST_TO_PKG_PREFIX documentation, unused makesourcepackage updated CONF_PRG and CONF_PRG_AND_MAIL, no dphys2 in them also file name comment at top, corrected to new directory and changed description texts to be put in debian/control, and comments and updated debian/control with the needed stuff makesourcepackage add an /etc/[default/]config file in debian/.default and code to read config files, from dphys-swapfile, bug there, correct it made an example, no-effect config file for /etc/default packaged version 20040611.172856-1, changelog: "first release, only makesourcepackage" index.html.en added link to the packaged stuff 2004.06.17 Thu convert Makefile Makefile.debian-local to script makelocalsite 2004.06.18 Fri further convert Makefile Makefile.debian-local to script makelocalsite add stuff for config, SYS_* vars, CONF_* vars, debug stuff DEBUG_* update index.html.en and Makefile ci and tar to know this script analysed needed package tree, only dists/ and indices/, rest just local stuff ensure (and auto-(re-)generate) all directories as part of normal running this makes an separate (and forgettable) site creation call unneccessary error message from ls */blah*.deb when no files (such as empty section) add 2> /dev/null, while at it also in makelocalsite and existing packages debian/rules files rename short Makefile var names SE->SEC, PK->PKG, PR->PRI, PKF->PATH replace i386 with ${ARCH}, for in case someone else wants to do other testing in dists/woody/local/contrib, restored it, running make contrib failed because Makefile symlink to not anymore existing dphys2/Makefile.debian-local reaim it at dphys-pkgtools/Makefile.debian-local shows why Makefile+symlink is wrong approach, why proper script in /usr/bin makelocalsite link delete switch from ls -1F and grep @$ to using test -L path parsing independant of SYS_OWNPACKAGES path depth no cut -f n arithmetic for getting path for rm to use, as n depends 2004.07.01 Thu further makelocalsite path parsing independant of SYS_OWNPACKAGES path depth make override files using only dpkg --info, no analysing ${PATH} testing screws up dpkg-deb, on execing rm, isr messing up ${PATH} use ${DEB} and ${TARGZ} depending on where we are testing shows empty override no *.deb any more, now truly empty, bug auto-fix error messages form various chmod, so only if need to make dirs and also only if CONF_GROUP set to an group, and then also chown if no work directory no mkdir (most likely no rights anyway), but abort parse command line, presently just -a -v -h and section names decided without section name to do nothing, not run all 3, as that costs time makelocalsite only process valid sections, else abort, so no junk files 2004.07.02 Fri makelocalsite.1 man page, while doing so add to makesourcepackage.1 config sect moved all *_ARCH and *_SECTION to CONF_*, added to conf files and man pages added makelocalsite.1 to Makefile ci and tar present state archived as RCS revision 4.4 test run makelocalsite main, override.src broken, was missed $$ from Makefile override.src now generated properly, but some broken/incomplete records in it is either .orig.tar.gz (no debian/*) or multi-package sources (mult lines) against multiple lines put in an head -1 before cut 2004.07.08 Thu look into differences .tar.gz vs .orig.tar.gz+.diff.gz, .dsc 2 lines but these are just file name, no path, but dirname should be good enough test if .orig. in .dsc, then extract from tar or reconstruct from .diff.gz test shows chmod error on override files, delete old one, so it always works test main shows 4 packages with .orig.tar.gz and missing .diff.gz and one such package with 0 bytes .diff.gz, mail heeb about this is still using old 20040219 makesourcepackage, that does not know diffs text non-free shows source package not in override, hardcoded main, fixed also defective package with "unknown" section in x11 run of old Makefile.debian-local and then makelocalsite shows indices/.tmp collision, is src, should be ${SECTION}.src like bin move all indices/override.woody.* to vars ${OVR} and ${OVRS} also all ${SYS_OWNPACKAGES}/${SECTION}/* to ${B_ALL} ${B_ARCH} ${SOURCE} 2004.07.09 Fri makelocalsite non-free complains that dphys-spectro is not in override file but it is in indices/override.woody.non-free.src, in correct section dphys-spectro is in source and .src, but error is in binary-i386 turned out to bei .deb in binary-i386 instead of binary-i386/science main and non-free sources allways 0 packages, cut&paste bug instead of dpkg-scanpackages should be dpkg-scansources added warning for misplaced package files, not in section directory delete duplicate packages (new and older versions) move ${B_ALL} ${B_ARCH} ${SOURCE} defs up top, also use them in link/override changed link delete/make, also use, no subshell for ${SYS_OWNPACKAGES} path so get rid of fixed position cuttuing of path elements, loop until last before links del/(re)make routine to find duplicates and kill old ones makesourcepackage upload section, make new directories chmod 2775, files 664 2004.07.15 Thu heeb makelocalsite bug report: test main|contrib|non-free fails own sections fairly empty file tree has multiple *.deb not expand, used literally binary-i386 may have links to pool, only delete if pointing to own binary-all changed section part 1 (main|non-free|contrib) test to compare with actual sections directories found in ${SYS_OWNPACKAGES} deleting binary-i386 links to binary-all search for *_all.deb, only "our" links testing shows 2 *_i386.deb packages in binary-all linking fails as existing 2 links were not deleted, as not *_all.deb heeb rebuilt packages, error gone for *.deb faills when no *.deb files, instead of nothing it runs literal *.deb so put in if [ -e ${DEB} ]; then inside the for, this is a sh missfeature changed other uses of -f (normal file) to -e (exists) where not specific makesourcepackage split CONF_UPLOAD_TO into CONF_PKG_SERVER and CONF_PKG_BASE while at it rename variables in UPLOAD section to similar as in makelocalsite makelocalsite change to also source and then binary, as in makesourcepackage changed makesourcepackage to always use makelocalsite, if CONF_PKG_RUN_INDEX no complicated user-supplied command, as we now have an nice script updated debian/dphys-pkgtools.default to changes in msp and mls testing mls showed sections test before cd ${CONF_PKG_BASE}, but uses files move it to after cd, only command line parsing before cd added -b base option to msp and mls, allow multiple bases (local+backports) and updated both man page for this while doing so deleted unused -a code from mls and help and man page testing msp shows missing / in chgrp and chmod, added, works, copies now can not find makelocalsite, OK as not in path, add cd and ./, works so 2004.07.19 Mon msp -u scp prograss bar vs set time error message decided on no progress bar, instead like mls output what we are going to do msp -e tests so no * errors, CLONE error message if no dir or tar to clone 2004.07.21 Wed msp -e tests so no * errors, EXPAND also error message if no tar to expand same also all other functions, FETCH, UPLOAD, REMOVE, INFO msp and mls alle error messages format /bin/echo "$0: ERROR: ... >&2 Makefile added makelocalsite[.1] to all positions index.html.en added man pages update docs README, FAQ, INSTALL, index.html.en started adding to INSTALL info on how to use this whole system 2004.07.23 Fri improved docs, INSTALL show what steps need to be done, i.e. are important /etc/default/dphys-pkgtools set commented out defaults to what runs w/o config tidy up msp and mls to use these variable as soon as duplicates are deleted as until now test runs done with our config in scripts, not good in package change msp to run on server the proper msl path, not our test path better put this path into an config variable, allow user own program in addition to system config files also user config files in ${HOME}/.dphys-... split login into separate server and user variables, for split config split out our test system configs into my homedir config file and leave only the standard config as in conf files in the scripts updated man pages to these changes 2004.07.29 Thu makesourcepackage rules section improve comments, added debian/${PKG_NAME}.docs created debian/dphys-pkgtools.docs, with README, FAQ, INSTALL, index.html.en release 5th milestone, copy to ../dphys-pkgtools-20040729, make tar file of it modified index.html and FAQ and INSTALL to show the milestone release deleted old Makefile.debian-local from current, temporary link to milestone started new RCS archive with revision 5.0 (unchanged milestone 5) redo ../dphys-pkgtools.tar.gz tar archive of current state packaged version 20040729.142747-1, changelog:" "added makelocalsite and docs, new upstream milestone" -p dh_installdocs complains about INSTALL, remove it, no duplic README.Debian rely on docs in /etc/defaults/dphys-pkgtools, not separate descriptive file updated FAQ, INSTALL and index.html.en with 20040729.142747 versionm repackag 2004.08.13 Fri msp -r bugfix if [ -f ] error because multiple filenames in PKG_GENNAMES needed an `echo | cut -f 1 -d ""` to reduce them to one word, repackaged packaged version 20040813.133454-1, changelog:" "bugfix test arguments error in -r option" 2004.08.20 Fri 2 man pages added "SEE ALSO" cross references to each other 2004.08.26 Thu man pages expand explanation, more "why" and "what we do, good practise" style information from config files an INSTALL file added examples of use section, showing typical usage change copyright remarks to mention modified/non-advertising BSD packaged version 20040826.172642-1, changelog:" "strongly expanded man pages" 2004.09.16 Thu changed -u upload code to stay in sync with dphys2rescue (and dphys2root) 2004.09.17 Fri msp and mls CONF_GROUP some times still old GROUP, chgrp/chmod gets missed packaged version 20040917.131305-1, changelog:" "bugfix ${CONF_GROUP} still sometimes was ${GROUP}" 2004.10.15 Fri change coding style stuff to stay in sync with dphys2* added DEBUG_WAIT_STEP, changed DEBUG_PRINT_STEP to --- style, no '###' added -D universal stuff, remove -n and -v stuff as -D can do them, man pages all echo ERROR and WARNING proper format "$0: BLAH: blah" >&2 all << EOF change to more expressive << END--FILE UPLOAD in ./.tmp-blah changed to SYS_UPLOADDIR in /var/tmp all 4 config sources, /etc /etc/default ~/. and ./, NAME and PNAME doing so in mls found collision for using NAME, changed to PKGN overview man page dphys-pkgtools(7), referenced by existing *(1) fix bug in generated debian/rules noticed while using for dphys2 some of the lines are lacking /bin/ or /usr/bin/ add features found missing while using for dphys2 msp generated Makefile more *DIR variables, commented out exa prog+man lines msp generate an debian/*.docs file with just README in it 2004.10.21 Thu msp -g always test if an file already exists, do not generate if it does INFO message if file not being generated, so user can detect possible error SAVE_TAR moved to SYS_*, and into /var/tmp instead of local dir moved SYS_OWNPACKAGES to CONF_OWNPACKAGES as users may want to change it added to man pages, and improved CONF_PKG_BASE entry while at it mls check for valid sections better error message, list valid sections man page remarks about what sections are allowed msp generate proper debian/control and debian/rules lines for non-all arch debian/control Build-Depends-Indep vs Build-Depends debian/rules binary-indep vs binary-arch man page makesourcepackage improved description of what is needed 2004.10.22 Fri man page makesourcepackage better EXAMPLES section explain what has to be done to make package content in particular the contents of debian/* directory, what does the user need split out all package generation from EXAMPLES to own PACKAGE MAKING section info on how using for config packages, edit system from postinst remarks on how all dphys2/dphys-admin/dphys-pkgtools fit together index.html.en say more about dphys2/dphys-admin/dphys-pkgtools relationship packaged version 20041022.180012-1, changelog:" "dphys2 coding style sync, improved docs and error msgs" 2004.11.05 Fri msp man page better information about init, cron.*, und postinst packages packaged version 20041105.180136-1, changelog:" "improved docs for package generation process" 2004.12.09 Thu mls add per-section exclusion lock, no multiple calls run same time mls check if source duplicates are being removed, they are being left keep it so, as archive, so document behaviour in man page (was in source) msp upload multiple packages at once wastes lots of time with multiple mls runs multi-package while over everything does same, as upload in while multi-package in each function is a lot of work multi-package only in upload is break of orthogonality so need to do multiple command, each upload than only last run index either -u without index (own option for that), consequent, but user change or -u with no-index option, less intuitive, different invocation of last -u decided to use -u and -ui, not -un and -u so remove old -i info function, seldom used, only does dpkg-deb --info added -i index, with own extracting ${SECTION}, updaten man page mls bug fixed, output ERROR with >&2 instead of wrong > 2& packaged version 20041209.171719-1, changelog:" "mls locks so only 1 running, msp separate upload and index" 2005.01.14 Fri add option -v, say what we are doing, all action/status output facultative use ${CMD_VERBOSE} instead of if/echo/fi tidy up warnings, changed no command option warnung to use OPTION_COMMAND not list of all options, allows operation from where option parsed also bug removed when ${DO_DEPEND}|${DO_OPTION}|${DO_CLOG} contain spaces also replace existing if DEBUG_WAIT/read dummy/fi with ${CMD_DEBUG_WAIT} fails to evaluate "" after variable substitution, so no spaces in prompt same also for DEBUG_PRINT and ${CMD_DEBUG_PRINT}, no --- blah --- blocks also for mls, block debug output framed with --- begin|end --- update man pages for -v option 2005.01.20 Thu reverse -v, standard verbose, option -q to be quiet asked sengun for more desired output, mainly list what uploaded and to where use again free -v option for this, list files as writing into upload dir multiple .deb packages, loop over .deb names, extract arch for each file only get version from filenames for .dsc, rest use version in .dsc .dsc does not know section, pre-read first .deb to get section fix .deb handling to survive multiple non-all architectures, only use first correct .orig.tar.gz to not have an debianisation level fix .changes to be architecture specific packaged new version, updated FAQ, INSTALL, index.html.en 2005.02.10 Thu pkgtools support for multiple distributions (woody+sarge) path section "woody" only appears in setting CONF_OWNPACKAGES and only in mls in the indices/override.woody.* filenames packaged version 20050120.183259-1, changelog:" "tidy output, -q, msp -uv, msp handle multi-.deb packages and .orig.tar.gz" 2005.02.11 Fr replaced ${CONF_OWNPACKAGES} with dists/${CONF_DISTRIB}, for user set the later mls name for override file with cut -f 1 from ${CONF_DISTRIB} changed mls man page to refer less to woody, as this stuff is independant mls add -d option to set which distribution it will (re-)index msp schould really also have -d, but that is already used for dependancies extracting distribution from debian/control standardsversion but this fails add /local /backports or similar, also fails double upload using per directory dot files fails when uploading for woody and sarge using environment variables (-d and -b) ist more complex, and inconsistant -d (and -o) options are not used anymore, only dsbg, do an featurectomy msp added support for -b and -d, incl passing to mls packaged version 20050211.163349-1, changelog:" "multiple distris (woody and sarge), remove -d (depend) and -o" 2005.02.17 Fr /etc/default/dphys-pkgtools is missing, should be done by dh_installinit but that is only called when /etc/init.d/dphys-pkgtools needs it senguen /etc/default/* are only for /etc/init.d/* usage, so should not here move debian/dphys-pkgtools.default to dphys-pkgtools.example and change Makefile to install it into /usr/share/doc/dphys-pkgtools packaged version 20050217.135244-1, changelog:" "no /etc/default as not init.d script, instead /usr/share/doc example" 2005.04.07 Thu improved commenting on CMD_* section, analog to reworked dphys3 version fixed bug, missing handling of default DEBUG_* -> CMD_DEBUG_* conversion added CMD_DEBUG_SLEEP 2005.04.08 Fr heeb bug when uploading, only with pgp signed packags -u extracts debian Version: number from .dsc, clashes with pgp Version: most likely from 2005.01.20 changes, no gpg packages uploaded since then while looking for upload bug also found an packaging bug when package directory has version != debian version clash with deb-build only generate own version number if no number in directory? 2005.04.15 Fri mls change debug --- begin|end --- to use +++ like in dphys3, none in msp 2005.04.20 Wed senguen bug .deb not uploaded, rest was, despite -v output that all done msp missleading -v output in -u, server ${CONF_PKG_BASE} and then path only list the path relative to ${CONF_PKG_BASE}, fits server and client while at it changed to only generate ARCH and B_ARCH_DIR once in test it works, if no packages on server, fails if already source there scp problem? leave it for the moment, observer future behaviour heeb -u bug when uploading pgp signed package stripping file with gpg introduces dependency users may not want even no depend and simply test if gpg here produces trouble if no ~/.gnupg generates it, crashes demanding restart, no auto-restart also we do not want to litter users homes with . files with only defaults taking Version: from dpkg-deb requires package name, requires version, ... so extract .dsc from signature with a few seds, hope format stays so packaging bug when package directory has versioning != debian versioning turns out package files generated with /debian/changelog version all files are generated with debian version in names, not directory name code allways uses PKG_NAME and derived from that PRG_DIR and then generates Debian packaged filenames from PKG_NAME but for -p (and later) user enters PRG_DIR, may be different from PKG_NAME do all initial name processing with neutral NAME, then derive all stuff systematic PKG_NAME and PRG_DIR derivation, depending on operation 2005.04.21 Thu further packaging bug, for each PRG_DIR and PKG_NAME fallback settings invoke these direct after all deviating options handled (expand/fetch/gen) testing, tidied up archive file and directory finding heuristics fixed hidden wrong variable, -p switched to PKG_NAME dir, not PKG_NAME cloning now gives NOTE: about preexisiting debisn/ dir, drop this for all test senguen shows dir not found for his package, is test for '\.' that also kills directory with . in name, such as in version number better heuristic, use ls -1dF and scan for /$ and then remove the / while testing noticed that dphys-pkgtools-20040729 archive lacks 20040729.142747-1 debianisation changelog entry, added this, remade .tar.gz packaged version 20050421.141903-1, changelog:" "bugfix handle pgp signed .dsc file, bugfix handle dirname != pkgname" 2005.04.28 Thu generated Makefile rename EXADIR to DOCDIR and add EXADIR examples subdir this is correct file standard, changed own Makefile to use same standard used -c for dphys-local-admin -> dphys-local-etc-default-dphys did not update debian/${PKG_NAME}.postinst, only soes old style names, fixed 2005.04.29 Fri heeb bug in -u PGP/gpg handling, comma instead of space, fixed packaged version 20050429.144034-1, changelog:" "bugfix comma->space, clone also process [pre|post][inst|rm]" 2005.05.12 Thu senguen -u still misses .deb in main, but works in non-free logging shows it failing to copy, only if errors from -p existing files but this works everywhere else, remove/install ssh package, now it works 2005.05.20 Fri fixed man pages, still mentioned old /etc/debian/* config file 2005.09.02 Fri msp scp -pr fails upload .deb, aborts -r after 143M .tar.gz file, small works is an scp bug, also when by hand, also on sarge, use rsync instead while at it also other fixes: END-RULES-MEKEFILE -> END-RULES-MAKEFILE upstream directories -> upstream directory debianising directories -> debianisation directory both added exit 0 at end, fitting new policy msp split handling makefile and readme both man pages document -v option msp man page document mls usage by msp -i better msp -u -v added output of distribution and server mls -i -v added output of distribution and server msp -l output version number generated, prevent user needing to look it up mls added test of ${CONF_DISTRIB} is valid user input both first debugging output only after debugging command variables set packaged version 20050902.174401-1, changelog:" "replaced scp with by rsync because -r faillure, lots of small stuff" 2005.09.08 Thu rubi bug report mls default woody/local when compiling on sarge system is configuration option, defaults to woody, should be dist independant so this really needs to use an /etc/dphys-pkgtools config file generate such an file and add it to dphys-config list make an standard config file, noticed CONF_ names weak, correct them now replaced CONF_PRG_AND_MAIL with CONF_MAINT_NAME and CONF_MAINT_EMAIL replaced CONF_PRG with CONF_AUTHOR, to express what it is rubi bug report mls leaves its lockfile when interrupted should be run until end, else server inconsistant, block interrupting test shows each Ctrl-C kills something, gives random errors but user should learn from message and then do nothing, so leave it is still better than doing nothing and letting user abort, as until now slightly better with echo to stderr, but non-inherited signals are broken signal set to ignore is inherited, so use that, no user warning packaged version 20050908.141845-1, changelog:" "better naming for some config options, trap handling interrupts" 2005.09.09 Fri senguen bug report, when selecting versions PKG_DIR and PKG_NAME sort ASCII not numeric as desirable, is ls -1dF work, else lots of code, leave it 2005.11.11 Fri mls when running error messages when in sarge main, nowhere else went and found wrongly stored packages (non msp uploads) and also an package with 2 versions and different section in each 2005.11.17 Thu msp -u handle multi-.deb packages correctly also with different architectures and sections for each .deb and also for source its own section (no necessarily that of "first" .deb) not in .dsc, so extract from debian/control, extract that from tar or diff msp -u and -i inconsistent in deciding what package to handle (.dsc vs .deb) may be no .deb with projects name (if multi-.deb), so also use .dsc for this 2005.11.18 Fri msp -ui also with an raw .deb file, no .dsc packaging stuff packaged version 20051118.154836-1, changelog:" "handle multi-.deb with varying section or arch, and non-.dsc packages" 2005.12.22 Thu changed CMD_* stuff to same new system as in dphys3 2006.02.09 Thu senguen bug report, -ui fails on package with epoch (4:) in version number debian fails to take this part over into filename, so file not found need to change usage of PKG_VERSION which contains full version number rebuilt part of code and comments to make it more readable/comprehensible twice changed nested if else if fi fi to if elif else fi direct generate full binary filenames for copy loop, not just package names fixed -D debug option, shift 1 after entire code block looking at code found further bug, -i missing selection of only debian/control so strictly any line with "^Section: " would be taken, if no .diff file found further bug, sed expression without command, if package with .diff file 2006.02.10 Fri fixed above sed expression, was simply lacking p after addresses was not reported by user, despite error messages, add set -e, for more effect strip epoch, as we only use version for filenames, which never have it regression bug -u and -i work, -ui fails to do -i, -uiv works allways fails when echo +++ ? added, works with -v when part in -u removed but then also works with slightly different echo +++ ? then when CONF_INDEXER=/bin/echo and old with # for faster fails now without -v it works again, same also when both CONF_INDEXER= lines and despite second CONF_INDEXER= it still runs /usr/bin/makelocalsite (!) this turns out to be effect from my ~/.dphys-pkgtools overwriting it hanging/abborting point is on rsync in -u, may be set -e effect add an error message and official exit in case this happens do same also for ssh call running indexer, just in case now with no -v ok, but with -v abborts in rsync test, with $? set to 0 (!) remove some unneccessary echo +++ ? and now works with and without -v after adding missing > to 2nd epoch test in -i rsync fails again despite being earlier in code, at least problem not any more -v sensitive try to get $? output from rsync, now works without -v, fails with -v error 23, "Partial transfer due to error" removed remaining echo +++ ? and it now works with or without -v added just 2 echo +++ ? and now -v independant, -u and -i ok, -ui fails testwise removed the 2> /dev/null from rsync gets normal "failed to set times" errors and also "some files could not be transferred (code 23) at main.c(789)" without 2> /dev/null and without echo +++ ? no errors, not even time ones noticed paths dists/sarge/local/main/source/${CONF_SECTION}/... in -v outp is 2nd missed place where any line with "^Section: " would be taken this fixes one bug, but still not unreliable rsync behaviour rsync still produces error, but files are copied, ignore it, prevent abort error message each run disturbs, so reduce it to an debug output senguen test shows 2nd case of missing edit in duplicated code for finding filenames and section used by -u and -i, factored out common code packaged version 20060210.105413-1, changelog:" "bugfix eliminate epochs, .diff pkgs proper section" 2006.05.17 Wed msp improve help and man page, show that at least one command/function/action option is needed and while at it limits of repeats and combinations, also row stuff here and while at it when no command issue error message, not just warning packaged version 20060517.173854-1, changelog:" "improved help and man page, command variants" 2006.05.18 Thu msp further improved help and man page section commands which lists just them, and after section options packaged version 20060518.110701-1, changelog:" "further improved help and man page, commands and options separate" 2006.06.16 Fri msp system for uploading stray .deb files fails if user gives entire filename system expects to have to add everything after the package name, gives double also add support for full filename already give, no addition, if end is .deb test shows failing to even get to there, because no package directory found need change so that directory only looked for if needed broken already earlier, when stripping everything after first '.' fix to only cautiously nibble of stuff from end, not just grab front part also fails on finding PKG_DIR if no unpacked directory around as that is only needed for modifying, not upload/indexing, only run then while changing noticed collision on {NAME}, for parameter new ${PARAM} packaged version 20060616.134822-1, changelog:" "bugfix problems with . in package names, allow .deb only to work" 2006.08.11 Fri added all "packaged version ????????.??????-?, changelog:" lines 2006.11.23 Thu rework for separate upstream and Debian maintainer, only .tar.gz release reworked and updated documentation, FAQ, INSTALL, README, index.html.en remove FAQ and INSTALL and index.html.en references to my old packages remove old debian/ so that senguen can make proper debianisation debian/changelog is all info duplicated in this Logfile, deleted it debian/control is just fakeroot and rsync depends and docu, add to docs debian/copyright is same as in README, deleted it debian/dphys-config.docs is nothing, deleted it debian/rules has nothing specific, deleted it updated man pages, reworked text set new systematic PATH=, removed all absolute paths in commands 2006.11.24 Fri config files *dphys-pkgtools different name as program, no recursion danger checking for cut -f test that can fail if separator missing while at it fixed tab completion sanitation for .tar. case adding "${var}" quoting, and echo "some test" and ${CMD_..} "some text" also VAR="", and [] tests with "${}" instead of x${}, and any ${VAR} while at it checked up * expansions for not colliding with being inside "" 2006.11.30 Thu handle for VAR in ${VAR-LIST} so that ${VAR-LIST} can not introduce metachars in makesourcepackage filter .deb file names, allow a-zA-Z0-9.-_+:%~ used these chars allow all packages in debian.ethz.ch in makelocalsite filter sections on a-z-, enough for main/contrib/non-free in makelocalsite multiple for DEB in ${B_ALL}/*/*.deb ; do these can be automatically handled by the shell with "${B_ALL}"/*/*.deb handle escaping properly in shell called by generated Makefiles ${PKG_DIR}/Makefile no problems, only uses make $(), no shell ${} ${DEB_DIR}/rules also has ${}, in dh_installinit section ${LINE} ${PARAMS} ran automated tests for quoting, fixed few missing cases no shell functions, so no keyword function to remove makelocalsite uses echo -e \t, switch to more portable printf index.html.en added reference to dphys3, not just outdated dphys2 added test against uploading with root@ and smashing access rights to non-free with explicitely named SYS_ALLOW_ROOT_UPLOAD_LOSSAGE option to disable test standardised cut -f -d " " -> cut -f -d ' ', more legible at end of "``" test runs makesourcepackage -g extremely long error message (>100 lines) from bash syntax error was an lost } after "${VAR, and directly following " then missunderstood after this unexpected EOF while looking for matching `"' , found missing after this still same unexpected EOF, use set -x happens after [ ] test for upload or index common stuff force that to run, same error, after goind through that section must be in if [ "${DO_UPLOAD}" = yes ] ; then but what is it commented that out, crashes shortly later, was misstyped "${VAR"} 2006.12.01 Fri test runs makesourcepackage, -u fails on modified safe for loop because we have blah_*.deb in ${PKG_DEBNAMES}, can not expand testing/sanitising has to happen while building ${PKG_DEBNAMES} an that should be up in .dsc vs .deb dependant stuff redesign entire .deb file enumeration, put it with other PKG_* settings and test valid input there, before/while generating file list, no * in it while doing this noticed faillure with mixed main/non-free packages seldom/never, don't bother fixing, but document limitation tests now all OK, handed over to senguen for test packaging 2006.12.19 Tue senguen packaging, found bug in Makefile, dphys-pkgtools.example not included lintian problem with \ excaped . at begin of an line in man page it also dislikes followed by -, so use \- everywhere testing on small personal site shows makelocalsite trouble if no binary-all is debug test output, stdout of `` command, use 2>/dev/null also complains about trap with - parameter, fixed, why never before? after all bugfixes and changes new release updated FAQ, INSTALL, index.html.en copy to ../dphys-kernel-packages-20061027, made tar file of that remade ../dphys-kernel-packages.tar.gz archive for current state ------ project status doing: todo: possible extensions: makelocalsite support indexing for multiple architectures makesourcepackage already writes into correct architecture dirs add uploading and indexing call to locally run makelocalsite with this no separate makesourcepackage would be needed any more