From dbccce95efa7e0a226335cbf2de21eb16e006dff Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Tue, 5 Apr 2005 22:13:35 +0000 Subject: - work around maintainer disagreements with default config files --- profiles/hardened/profile.bashrc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 profiles/hardened/profile.bashrc (limited to 'profiles') 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 -- cgit v1.2.3-65-gdbad