Implement feedback from dougb@

It would be better to replace the SUB_FILES line in the
	Makefile with:

	USE_RC_SUBR=    ${PORTNAME}.sh

	This provides several benefits in the short term. It would
	obviate the need for the post-install target and the pkg-plist
	entry, as the USE_RC_SUBR macro handles that stuff (as well
	as the SUB_FILES stuff) for you automatically. In the long
	term, we're going to add even more support for good things
	in the USE_RC_SUBR code, so it's a good idea to move that
	direction now.
This commit is contained in:
Edwin Groothuis 2006-01-05 00:43:42 +00:00
parent 8674d20fc7
commit 01394fbeed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152769
2 changed files with 1 additions and 5 deletions

View file

@ -24,7 +24,7 @@ AUTOMAKE_ARGS= --add-missing
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc
SUB_FILES= newscache.sh USE_RC_SUBR= ${PORTNAME}.sh
MAN5= newscache.conf.5 MAN5= newscache.conf.5
MAN8= newscache.8 newscacheclean.8 updatenews.8 MAN8= newscache.8 newscacheclean.8 updatenews.8
@ -36,7 +36,4 @@ post-patch:
pre-configure: pre-configure:
(cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${SH} ./autogen) (cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${SH} ./autogen)
post-install:
cp ${WRKDIR}/newscache.sh ${PREFIX}/etc/rc.d
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,6 +1,5 @@
bin/updatenews bin/updatenews
etc/newscache.conf-dist etc/newscache.conf-dist
etc/newscache.auth-dist etc/newscache.auth-dist
etc/rc.d/newscache.sh
sbin/newscache sbin/newscache
sbin/newscacheclean sbin/newscacheclean