diff options
author | Ned Ludd <solar@gentoo.org> | 2005-04-05 22:13:35 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2005-04-05 22:13:35 +0000 |
commit | dbccce95efa7e0a226335cbf2de21eb16e006dff (patch) | |
tree | 30241da61e3cb1805c341808ae8281a8381e5b60 /profiles | |
parent | Version bumped. (diff) | |
download | gentoo-2-dbccce95efa7e0a226335cbf2de21eb16e006dff.tar.gz gentoo-2-dbccce95efa7e0a226335cbf2de21eb16e006dff.tar.bz2 gentoo-2-dbccce95efa7e0a226335cbf2de21eb16e006dff.zip |
- work around maintainer disagreements with default config files
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/hardened/profile.bashrc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/profiles/hardened/profile.bashrc b/profiles/hardened/profile.bashrc new file mode 100644 index 000000000000..edb7ed869e12 --- /dev/null +++ b/profiles/hardened/profile.bashrc @@ -0,0 +1,27 @@ +# Copyright 2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/hardened/profile.bashrc,v 1.1 2005/04/05 22:13:35 solar Exp $ + +case "${EBUILD_PHASE}" in + install) + # Our syslog-ng maintainer is not fond of giving users a decent default syslog-ng.conf + if [[ $PN = "syslog-ng" ]]; then + newins() { + if [ -z "${T}" ] || [ -z "${2}" ] ; then + echo "Error: Nothing defined to do." + return 1 + fi + rm -rf "${T}/${2}" + cp "${1}" "${T}/${2}" + + if [[ $1 = "${FILESDIR}/syslog-ng.conf.gentoo" ]] \ + && [ -e "${FILESDIR}/syslog-ng.conf.gentoo.hardened" ]; then + + cp "${FILESDIR}/syslog-ng.conf.gentoo.hardened" "${T}/${2}" + fi + doins "${T}/${2}" + } + fi + ;; + *) ;; +esac |