Hi Bob,
I'm trying to package using the Debian New Maintainer's Guide, or at least what I've read about packaging upstream sources.
In a nutshell:
# cd /usr/src
# tar -zxf firnsy-barnyard2-v2-1.10-beta2-8-g57597de.tar.gz
# mv firnsy-barnyard2-57597de barnyard2-2.10
# tar -zcf barnyard2-2.10.tar.gz barnyard2-2.10
# cd barnyard2-2.10/
# dh_make -f ../barnyard2-2.10.tar.gz
# debuild -us -uc # I'm pretty certain something is missing in debian/rules since ...
# dpkg-deb -c ../barnyard2_2.10-1_i386.deb # outputs
drwxr-xr-x root/root 0 2012-08-11 15:33 ./
drwxr-xr-x root/root 0 2012-08-11 15:33 ./usr/
drwxr-xr-x root/root 0 2012-08-11 15:33 ./usr/share/
drwxr-xr-x root/root 0 2012-08-11 15:33 ./usr/share/doc/
drwxr-xr-x root/root 0 2012-08-11 15:33 ./usr/share/doc/barnyard2/
-rw-r--r-- root/root 188 2012-08-11 15:05 ./usr/share/doc/barnyard2/README.Debian
-rw-r--r-- root/root 2622 2012-06-22 04:37 ./usr/share/doc/barnyard2/README.gz
-rw-r--r-- root/root 177 2012-08-11 15:05 ./usr/share/doc/barnyard2/changelog.Debian.gz
-rw-r--r-- root/root 1099 2012-08-11 15:05 ./usr/share/doc/barnyard2/copyright
As you can see from the output /usr/local/bin/barnyard2 is missing.
I think it may be that debian/rules is lacking the proper directives but I'm not sure how to specify them.
I've tried:
#!/usr/bin/make -f
%:
dh $@
override_dh_autoreconf:
dh_autoreconf -fvi -I ./m4
override_dh_auto_configure:
dh_auto_configure -- --with-mysql
This seems to have no effect.
I would like to be good enough at packaging barnyard2 and possibly maintain it for Debian since it doesn't appear to be available in the repositories, hence trying to follow the guide.
However, I am open to other methods of packaging for the sake of conveniently testing in the lab.
Obviously I'm just starting on the journey so any help is greatly appreciated.
Thanks,
-Rich