diff options
author | Dejan Lesjak <lesi@FreeBSD.org> | 2005-01-23 19:50:40 +0000 |
---|---|---|
committer | Dejan Lesjak <lesi@FreeBSD.org> | 2005-01-23 19:50:40 +0000 |
commit | 6e74169b0c089e73faece47dfe38457554683c53 (patch) | |
tree | 06f00d8b47b38e146f7d626f3679c06fb2a19fbf /x11-fonts/xfs/Makefile | |
parent | e4dd4efacd9cb86511d3cb454f784308d967d29a (diff) | |
download | ports-6e74169b0c089e73faece47dfe38457554683c53.tar.gz ports-6e74169b0c089e73faece47dfe38457554683c53.zip |
Add rcNG startup script. [1]
Font cache is not build by default, which makes related lines in
default configure file wrong, which in turn causes xfs to error out
on startup with default file. Tweak generation of said file in a way
that would make proper configuration depending on existance of font
caching code, so that this patch can be sent upstream. [2]
Inspired by: Jose M Rodriguez (josemi at freebsd.jazztel.es) [1]
Bits and pieces for [1] stolen from:
src/etc/rc.d/xfs, apache2 and squid ports
Noticed by: Gary Dunn (knowtree at aloha.com) [2]
Notes
Notes:
svn path=/head/; revision=127146
Diffstat (limited to 'x11-fonts/xfs/Makefile')
-rw-r--r-- | x11-fonts/xfs/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/x11-fonts/xfs/Makefile b/x11-fonts/xfs/Makefile index 05a37a85afd4..3d63b4ba0f20 100644 --- a/x11-fonts/xfs/Makefile +++ b/x11-fonts/xfs/Makefile @@ -7,6 +7,7 @@ PORTNAME= xorg-fontserver PORTVERSION= 6.8.1 +PORTREVISION= 1 CATEGORIES= x11-servers MASTER_SITES= ${MASTER_SITE_XORG} MASTER_SITE_SUBDIR= X11R${PORTVERSION}/tars @@ -28,7 +29,13 @@ XBUILD_DIRS= programs/xfs XINCLUDE_DIRS= lib/xtrans XMAN_DIRS= programs/xfs +post-build: + @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ + -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \ + ${FILESDIR}/xfs.sh >${WRKDIR}/xfs.sh + post-install: + @${INSTALL_SCRIPT} ${WRKDIR}/xfs.sh ${PREFIX}/etc/rc.d ${INSTALL_SCRIPT} ${WRKSRC}/programs/xfs/config \ ${PREFIX}/lib/X11/fs/config.default |