Package: equivs Version: 2.0.7 Severity: wishlist It'd be useful if equivs could add more files to the package than just docs; my use case is adding some scripts into /usr/local/bin and an /etc/cron.d file. Patch follows.
diff -urb equivs-2.0.7/debian/changelog equivs-2.0.7-0.0aj1/debian/changelog --- equivs-2.0.7/debian/changelog 2006-02-28 18:01:18.000000000 +1000 +++ equivs-2.0.7-0.0aj1/debian/changelog 2007-11-06 23:29:26.000000000 +1000 @@ -1,3 +1,14 @@ +equivs (2.0.7-0.0aj1) unstable; urgency=low + + * An unuploaded NMU. + * Added support for equivs packages to include actual files by + specifying a "Files:" section that contains " src /path/to/dest" + lines. + * Update Standards-Version. + * Change debhelper to Build-Depends: for availability in clean target. + + -- Anthony Towns <[EMAIL PROTECTED]> Tue, 06 Nov 2007 22:41:29 +1000 + equivs (2.0.7) unstable; urgency=low * New maintainer. (Closes: #350835) diff -urb equivs-2.0.7/debian/control equivs-2.0.7-0.0aj1/debian/control --- equivs-2.0.7/debian/control 2006-02-22 20:12:29.000000000 +1000 +++ equivs-2.0.7-0.0aj1/debian/control 2007-11-06 23:26:41.000000000 +1000 @@ -2,8 +2,8 @@ Section: admin Priority: extra Maintainer: Peter Samuelson <[EMAIL PROTECTED]> -Standards-Version: 3.6.2 -Build-Depends-Indep: debhelper (>= 4) +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 4) Package: equivs Depends: perl, debhelper (>= 4), dpkg-dev, devscripts, make, fakeroot diff -urb equivs-2.0.7/usr/bin/equivs-build equivs-2.0.7-0.0aj1/usr/bin/equivs-build --- equivs-2.0.7/usr/bin/equivs-build 2006-02-28 18:33:25.000000000 +1000 +++ equivs-2.0.7-0.0aj1/usr/bin/equivs-build 2007-11-06 23:38:55.000000000 +1000 @@ -61,6 +61,30 @@ # Copy any additional files my @extra_files = split ",", $control{'Extra-Files'} || ""; +my %install_files= (); +for (split "\n", $control{'Files'} || "") { + $install_files{$1} = $2 if m/^\s*(\S+)\s+(\S+)\s*$/; +} + +mkdir "$builddir/install", 0755; +open INSTALL, '>', "$builddir/debian/install" or + die "Cannot open $builddir/debian/installfor writing: $!\n"; +foreach my $file (keys %install_files){ + $file =~ s/ +//g; + my $target = $install_files{$file}; + my $destination; + my $cnt = 0; + do { + $destination = "install/$cnt"; + mkdir "$builddir/$destination" unless -d "$builddir/$destination"; + $destination .= "/" . basename($target); + $cnt++; + } while ( -e "$builddir/$destination" ); + copy $file, "$builddir/$destination" or + die "Cannot copy $file to $builddir/$destination: $!\n"; + print INSTALL "$destination " . dirname($target) . "\n"; +} +close INSTALL; mkdir "$builddir/docs", 0755; open DOCS, '>', "$builddir/debian/docs" or diff -urb equivs-2.0.7/usr/share/equivs/template/debian/rules equivs-2.0.7-0.0aj1/usr/share/equivs/template/debian/rules --- equivs-2.0.7/usr/share/equivs/template/debian/rules 2006-02-26 21:46:51.000000000 +1000 +++ equivs-2.0.7-0.0aj1/usr/share/equivs/template/debian/rules 2007-11-06 22:45:04.000000000 +1000 @@ -20,6 +20,7 @@ binary-arch: install dh_testdir dh_testroot + dh_install dh_installdocs dh_installchangelogs dh_compress -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]