1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/tools/package-management/checkinstall/etc-dirs.patch
Eelco Dolstra 6a18dcab44 * checkinstall: don't include directories in the Debian `conffiles'
file.  This caused the Nix Debian build to fail (because it installs
  a file /etc/profile.d/nix.sh).

svn path=/nixpkgs/trunk/; revision=15038
2009-04-14 14:57:31 +00:00

26 lines
1.1 KiB
Diff

diff -rc checkinstall-orig/checkinstall checkinstall/checkinstall
*** checkinstall-orig/checkinstall 2009-03-27 17:07:26.000000000 +0100
--- checkinstall/checkinstall 2009-04-14 16:34:08.000000000 +0200
***************
*** 2607,2615 ****
chmod 755 $BUILD_DIR/DEBIAN/postrm
fi
! # Tag files in /etc to be conffiles
find $BUILD_DIR/etc 2> /dev/null | sed -e "s,$BUILD_DIR,," | \
! grep -v '^/etc$' > $BUILD_DIR/DEBIAN/conffiles
# The package will be saved here (ignores <epoch>: prefix):
DEBPKG="${DIRECTORIO_FUENTE}/${NAME}_`echo ${VERSION} | sed -e 's/^[0123456789]*://'`-${RELEASE}_${ARCHITECTURE}.deb"
--- 2607,2616 ----
chmod 755 $BUILD_DIR/DEBIAN/postrm
fi
! # Tag non-directory files in /etc to be conffiles
find $BUILD_DIR/etc 2> /dev/null | sed -e "s,$BUILD_DIR,," | \
! (while read fn; do test ! -d "$BUILD_DIR/$fn" && echo "$fn"; done) \
! > $BUILD_DIR/DEBIAN/conffiles
# The package will be saved here (ignores <epoch>: prefix):
DEBPKG="${DIRECTORIO_FUENTE}/${NAME}_`echo ${VERSION} | sed -e 's/^[0123456789]*://'`-${RELEASE}_${ARCHITECTURE}.deb"