diff options
Diffstat (limited to 'app-admin/update-conf/update-conf-9999.ebuild')
-rw-r--r-- | app-admin/update-conf/update-conf-9999.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app-admin/update-conf/update-conf-9999.ebuild b/app-admin/update-conf/update-conf-9999.ebuild new file mode 100644 index 0000000..4dea75e --- /dev/null +++ b/app-admin/update-conf/update-conf-9999.ebuild @@ -0,0 +1,44 @@ +# $Header$ + +EAPI=4 +inherit git-2 + +DESCRIPTION="script for flexible /etc/<conf>.d configuration" +HOMEPAGE="http://forums.gentoo.org/viewtopic.php?p=6364143" +EGIT_REPO_URI="git://github.com/Atha/${PN}.d" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="*" +IUSE="simple" + +RDEPEND="" +DEPEND="${RDEPEND}" + +DOCS="README USAGE" + +src_prepare() { + echo "patching the makefile with s:^PREFIX=:PREFIX=${D}: (required to prevent make to write outside the sandbox)" + sed -i "s:^PREFIX=:PREFIX=${D}:" Makefile + echo "patching the configuration to ensure it looks in /etc instead of in the sandbox" + sed -i 's%@CONFIGDIR@%/etc%' update-conf.d.simple.in + sed -i 's%@CONFIGDIR@%/etc%' update-conf.d.complex.in + echo "patching the makefile so the installation path is /usr instead of /usr/local" + sed -i 's:^INSTALLDIR=\$(PREFIX)/usr/local:INSTALLDIR=\$(PREFIX)/usr:' Makefile +} + +src_configure() { + emake clean + if use simple ; then + emake simple + else # default to complex version + emake complex + fi +} + +src_compile() { + emake install + + dodoc ${DOCS} +# use complex && doman update-conf.d.8 +} |