diff options
author | adam <adam@FreeBSD.org> | 1995-05-14 12:46:06 +0000 |
---|---|---|
committer | adam <adam@FreeBSD.org> | 1995-05-14 12:46:06 +0000 |
commit | 100a40ae471312c7fe7ed917196bbc7119dfcfdf (patch) | |
tree | c6b5264dcfdb77e62d22c8cbd1b3f50896fd53be /net | |
parent | 51f6523d1fbeae812dde9ad24e10ea1d7feaac07 (diff) | |
download | FreeBSD-ports-100a40ae471312c7fe7ed917196bbc7119dfcfdf.zip FreeBSD-ports-100a40ae471312c7fe7ed917196bbc7119dfcfdf.tar.gz |
workaround for package creation, by copying to a temporary PLIST
Diffstat (limited to 'net')
-rw-r--r-- | net/dgd/Makefile | 9 | ||||
-rw-r--r-- | net/dgd/pkg-plist | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/net/dgd/Makefile b/net/dgd/Makefile index 514fb25..5f72e81 100644 --- a/net/dgd/Makefile +++ b/net/dgd/Makefile @@ -15,6 +15,9 @@ CATEGORIES= networking languages MAINTAINER= adam@veda.is +DGD_USER?= dgd +DGD_GROUP?= dgd + .if ${PATCHFILES} != "" PATCH_PRFX= ${DISTNAME}/ PATCHLEVEL!= echo ${PATCHFILES} | sed 's/^.*\.\(.*\)\.gz$$/\1/' @@ -36,13 +39,15 @@ post-build: @cd ${WRKSRC}; ${MAKE} install do-install: - @chown -R mud.mud ${WRKDIR}/dgd + @chown -R ${DGD_USER}.${DGD_GROUP} ${WRKDIR}/dgd @tar -C ${WRKDIR} -cf - `grep '^dgd/' pkg/PLIST` \ | tar -C ${PREFIX} -xpf - .if !defined(DO_PACKAGE) package: - @${MAKE} ${.MAKEFLAGS} 'PKG_CMD= WRKDIR=${WRKDIR} ${PKG_CMD}' \ + @sed '/^@srcdir/s|\.|${WRKDIR}/\.|' <${PKGDIR}/PLIST >${WRKDIR}/PLIST +# @${MAKE} ${.MAKEFLAGS} 'PKG_CMD= cd ${WRKDIR}; ${PKG_CMD}' \ + @${MAKE} ${.MAKEFLAGS} 'PKG_ARGS= ${PKG_ARGS} -f ${WRKDIR}/PLIST' \ NO_INSTALL= DO_PACKAGE= package .endif diff --git a/net/dgd/pkg-plist b/net/dgd/pkg-plist index 8c2dcce..c8f7a99 100644 --- a/net/dgd/pkg-plist +++ b/net/dgd/pkg-plist @@ -1,4 +1,4 @@ -@srcdir ${WRKDIR} +@srcdir . @owner mud @group mud @cwd /usr/local |