diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2002-06-09 00:35:39 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2002-06-09 00:35:39 +0000 |
commit | 190732428effcdf6ecb3c79acd645fe12ef244ee (patch) | |
tree | 3feae3ccffe37cc885ff5fae5a04d3dbc9081925 /databases/rdfdb/Makefile | |
parent | a8762c8c74f42fd3ec24a6bc221add516bb9c457 (diff) | |
download | ports-190732428effcdf6ecb3c79acd645fe12ef244ee.tar.gz ports-190732428effcdf6ecb3c79acd645fe12ef244ee.zip |
Notes
Diffstat (limited to 'databases/rdfdb/Makefile')
-rw-r--r-- | databases/rdfdb/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/databases/rdfdb/Makefile b/databases/rdfdb/Makefile new file mode 100644 index 000000000000..1dbe2205f2e9 --- /dev/null +++ b/databases/rdfdb/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: rdfdb +# Date created: 28 December 2001 +# Whom: Philip Jenvey <pjenvey@turntables.org> +# +# $FreeBSD$ +# + +PORTNAME= rdfdb +PORTVERSION= 0.46 +CATEGORIES= databases +MASTER_SITES= http://www.guha.com/ +DISTNAME= rdfdb_src + +MAINTAINER= pjenvey@turntables.org + +LIB_DEPENDS= db3:${PORTSDIR}/databases/db3 + +WRKSRC= ${WRKDIR}/rdfdb +USE_GMAKE= yes +MAKEFILE= makefile +ALL_TARGET= +CFLAGS+= ${PTHREAD_CFLAGS} + +RDFDB_DIR?= /var/db/rdfdb +RDFDB_PORT?= 7001 +PLIST_SUB= RDFDB_DIR=${RDFDB_DIR} + +post-patch: + @${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ + -e 's,%%PTHREAD_LIBS%%,${PTHREAD_LIBS:S/"//g},g' \ + < ${WRKSRC}/makefile > ${WRKSRC}/makefile.new + @${MV} ${WRKSRC}/makefile.new ${WRKSRC}/makefile + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/rdfdb ${PREFIX}/bin +.if !exists(${RDFDB_DIR}) + @${MKDIR} ${RDFDB_DIR} +.endif + @${SETENV} RDFDB_DIR=${RDFDB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} \ + PRE-INSTALL + @${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 + +.include <bsd.port.mk> |