1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

1: Support staging.

2: use USE_RC_SUBR instead.
This commit is contained in:
Vanilla I. Shu 2014-05-16 08:05:05 +00:00
parent d94b7d4b56
commit d8e59b44cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354199
4 changed files with 6 additions and 11 deletions

View File

@ -17,17 +17,18 @@ INVALID_BDB_VER=2
USERS= rdfdb
GROUPS= rdfdb
WRKSRC= ${WRKDIR}/rdfdb
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/rdfdb
USES= gmake
MAKEFILE= makefile
ALL_TARGET=
CFLAGS+= ${PTHREAD_CFLAGS} -Wno-return-type
SUB_LIST+= RDFDB_PORT="${RDFDB_PORT}" RDFDB_DIR="${RDFDB_DIR}"
USE_RC_SUBR= rdfdb-server
RDFDB_PORT?= 7001
PLIST_FILES= bin/rdfdb bin/rdfdb etc/rc.d/rdfdb-server.sh
PLIST_FILES= bin/rdfdb
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
-e 's,%%PTHREAD_LIBS%%,${PTHREAD_LIBS:S/"//g},g' \
@ -36,12 +37,6 @@ post-patch:
${WRKSRC}/makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rdfdb ${PREFIX}/bin
@${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%RDFDB_DIR%%|${RDFDB_DIR}|g; \
s|%%RDFDB_PORT%%|${RDFDB_PORT}|g" \
< ${FILESDIR}/rdfdb-server.sh.tmpl \
> ${PREFIX}/etc/rc.d/rdfdb-server.sh
@${CHMOD} 554 ${PREFIX}/etc/rc.d/rdfdb-server.sh
@${CHOWN} root:rdfdb ${PREFIX}/etc/rc.d/rdfdb-server.sh
${INSTALL_PROGRAM} ${WRKSRC}/rdfdb ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>