Added keep_dirs and conf_files vars for templates.

These will be written in pkg metadata props file as well. For now
they don't change any behaviour, will be used in binary packages.

Convert some pkgs to use them.

--HG--
extra : convert_revision : d04f681cf80dc97ceb9e50370d5a8c0d7b52687c
This commit is contained in:
Juan RP 2008-12-14 01:48:36 +01:00
parent 2c7b9e58f7
commit 6c9ac2ea07
6 changed files with 16 additions and 1 deletions

View file

@ -22,6 +22,8 @@ long_desc="
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system."
conf_files="/etc/localtime /etc/ld.so.cache /etc/ld.so.conf /etc/rpc
/etc/nsswitch.conf"
base_chroot=yes
build_depends="gcc-4.3.2"

View file

@ -16,5 +16,6 @@ long_desc="
anymore, there's already a working SILC module available. Support for other
protocols like ICQ could be created some day too."
conf_files="/etc/irssi.conf"
build_depends="glib-2.18.2 perl-5.10.0 openssl-0.9.8i ncurses-5.6"
run_depends="glib-2.18.2 openssl-0.9.8i ncurses-5.6"

View file

@ -19,6 +19,8 @@ long_desc="
# Does not build with -j.
disable_parallel_build=yes
keep_dirs="/etc/ssl"
conf_files="/etc/ssl/openssl.cnf"
build_depends="perl-5.10.0 zlib-1.2.3"
run_depends="glibc-2.8 zlib-1.2.3"

View file

@ -29,6 +29,7 @@ long_desc="
re-downloaded when mirroring
* GNU Wget is distributed under the GNU General Public License."
conf_files="/etc/wgetrc"
base_chroot=yes
run_depends="glibc-2.8"
# TODO : Add openssl dependency

View file

@ -88,6 +88,15 @@ _EOF
done
printf "\t</array>\n" >> $TMPFPROPS
fi
# Keep directories while removing.
if [ -n "$keep_dirs" ]; then
printf "\t<key>keep_dirs</key>\n" >> $TMPFPROPS
printf "\t<array>\n" >> $TMPFPROPS
for f in ${keep_dirs}; do
printf "\t\t<string>$f</string>\n" >> $TMPFPROPS
done
printf "\t</array>\n" >> $TMPFPROPS
fi
# Terminate the property list file.
printf "</dict>\n</plist>\n" >> $TMPFPROPS

View file

@ -67,7 +67,7 @@ reset_tmpl_vars()
tar_override_cmd xml_entries sgml_entries \
build_depends libtool_fixup_la_stage no_fixup_libtool \
disable_parallel_build run_depends cross_compiler \
only_for_archs patch_args \
only_for_archs patch_args conf_files keep_dirs \
XBPS_EXTRACT_DONE XBPS_CONFIGURE_DONE \
XBPS_BUILD_DONE XBPS_INSTALL_DONE"