# step 0: rm --verbose --recursive ~/deb/pct-battery-manager-0.0.20081208 # step 1: mkdir --parents ~/deb/pct-battery-manager-0.0.20081208/ # step 2: echo 'DEBSIGN_KEYID="78830E32"' | tee ~/deb/.devscripts echo 'DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -ICVS -I.svn"' | tee --append ~/deb/.devscripts DEBEMAIL=jelledejong@powercraft.nl EDITOR=geany DEBFULLNAME="Jelle de Jong" export DEBEMAIL DEBFULLNAME EDITOR # step 3: cd ~/deb/ tar --create --verbose --gzip --file ~/deb/pct-battery-manager-0.0.20081208.tar.gz pct-battery-manager-0.0.20081208/ # step 4: cd ~/deb/pct-battery-manager-0.0.20081208/ dh_make --copyright gpl --email jelledejong@powercraft.nl --file ../pct-battery-manager-0.0.20081208.tar.gz # step 5: echo 'usr/bin' | tee ~/deb/pct-battery-manager-0.0.20081208/debian/dirs # step 6: echo 'pct-battery-manager usr/bin' | tee ~/deb/pct-battery-manager-0.0.20081208/debian/install # step 7: cd ~/deb/pct-battery-manager-0.0.20081208/debian rm --verbose docs cron.d.ex emacsen-install.ex emacsen-remove.ex emacsen-startup.ex init.d.ex init.d.lsb.ex manpage.1.ex manpage.sgml.ex manpage.xml.ex menu.ex postinst.ex postrm.ex preinst.ex prerm.ex README.Debian watch.ex rm --verbose pct-battery-manager.default.ex pct-battery-manager.doc-base.EX # step 8: vim ~/deb/pct-battery-manager-0.0.20081208/debian/rules vim ~/deb/pct-battery-manager-0.0.20081208/debian/copyright vim ~/deb/pct-battery-manager-0.0.20081208/debian/changelog vim ~/deb/pct-battery-manager-0.0.20081208/debian/control # step 9: cd ~/deb/pct-battery-manager-0.0.20081208/debian/ debuild clean debuild debuild clean # step 10: lintian -i ~/deb/pct-battery-manager_0.0.20081208-1_i386.deb lintian -i ~/deb/pct-battery-manager_0.0.20081208-1_i386.changes # step 11: dupload ~/deb/pct-battery-manager_0.0.20081208-1_i386.changes # step 12: ssh jelle@powercraft.nl su - reprepro --verbose --ask-passphrase --basedir /var/www/powercraft.nl/packages/debian include sid /var/www/powercraft.nl/packages/debian/incoming/pct-battery-manager_0.0.20081208-1_i386.changes find /var/www/powercraft.nl/packages/ -type d -exec chmod 750 {} \; find /var/www/powercraft.nl/packages/ -type f -exec chmod 640 {} \; find /var/www/powercraft.nl/packages/ -exec chgrp www-data {} \; rm --verbose /var/www/powercraft.nl/packages/debian/incoming/* logout logout # step 13: sudo apt-get update sudo apt-get install pct-battery-manager