tags 806032 + patch
thanks
> convert -geometry 32x32
> /<<PKGBUILDDIR>>/debian/tmp/usr/share/pixmaps/gftp.png
> /<<PKGBUILDDIR>>/debian/tmp/usr/share/pixmaps/gftp.xpm
> install -m 755 /<<PKGBUILDDIR>>/docs/parse-netrc.pl
> /<<PKGBUILDDIR>>/debian/gftp-common/usr/share/doc/gftp-common/examples
> install: cannot create regular file
> '/<<PKGBUILDDIR>>/debian/gftp-common/usr/share/doc/gftp-common/examples': No
> such file or directory
> debian/rules:29: recipe for target 'override_dh_auto_install' failed
Explanation: We are creating arch-independent packages only, so
debian/gftp-common/[...] does not exist because gftp-common is
arch-dependent (!).
[ Well, this is probably the NMUable thing in 2.0.18-16. I think it
would be better to make gftp-common "Arch: all" and relax the
dependencies on it. After all the syntax of the configuration file
does not change at every Debian package release ].
Anyway, the proposed patch does this:
* Use debian/gftp-common.examples instead of a line in debian/rules to
install parse-netrc.pl. This way, dh will take care of installing the
file when it's appropriate.
* Move gftprc and bookmarks without taking them out of debian/tmp,
tell dh to install them by adding a line to debian/gftp-common.install.
Hope this helps.
Thanks.
--- /dev/null
+++ b/debian/gftp-common.examples
@@ -0,0 +1 @@
+docs/parse-netrc.pl
--- a/debian/gftp-common.install
+++ b/debian/gftp-common.install
@@ -1,3 +1,4 @@
+etc/gftp
usr/bin/gftp
usr/share/gftp/gftprc
usr/share/gftp/bookmarks
--- a/debian/rules
+++ b/debian/rules
@@ -28,8 +28,8 @@
override_dh_auto_install:
dh_auto_install
convert -geometry 32x32 $(CURDIR)/debian/tmp/usr/share/pixmaps/gftp.png
$(CURDIR)/debian/tmp/usr/share/pixmaps/gftp.xpm
- install -m 755 $(CURDIR)/docs/parse-netrc.pl
$(CURDIR)/debian/gftp-common/usr/share/doc/gftp-common/examples
- mv $(CURDIR)/debian/tmp/usr/share/gftp/gftprc
$(CURDIR)/debian/gftp-common/etc/gftp
- mv $(CURDIR)/debian/tmp/usr/share/gftp/bookmarks
$(CURDIR)/debian/gftp-common/etc/gftp
+ install -d debian/tmp/etc/gftp
+ cd debian/tmp && mv usr/share/gftp/gftprc etc/gftp
+ cd debian/tmp && mv usr/share/gftp/bookmarks etc/gftp
ln -s /etc/gftp/gftprc $(CURDIR)/debian/tmp/usr/share/gftp/gftprc
ln -s /etc/gftp/bookmarks $(CURDIR)/debian/tmp/usr/share/gftp/bookmarks