aboutsummaryrefslogtreecommitdiffstats
path: root/net/cvsync
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-10-16 13:05:52 +0800
committerhrs <hrs@FreeBSD.org>2013-10-16 13:05:52 +0800
commite0f5feb1f7bc8be019c8279fd87a75ac4a2908ad (patch)
treef91290c7004785bef2d2fc05f615c67f1598c216 /net/cvsync
parent73527ab4b063e470f9264ad93d14c00402ed2981 (diff)
downloadfreebsd-ports-gnome-e0f5feb1f7bc8be019c8279fd87a75ac4a2908ad.tar.gz
freebsd-ports-gnome-e0f5feb1f7bc8be019c8279fd87a75ac4a2908ad.tar.zst
freebsd-ports-gnome-e0f5feb1f7bc8be019c8279fd87a75ac4a2908ad.zip
Add STAGEDIR support.
Diffstat (limited to 'net/cvsync')
-rw-r--r--net/cvsync/Makefile18
-rw-r--r--net/cvsync/files/patch-mk-base.mk13
-rw-r--r--net/cvsync/pkg-plist7
3 files changed, 30 insertions, 8 deletions
diff --git a/net/cvsync/Makefile b/net/cvsync/Makefile
index fdfbef07d1b8..706f17716f3f 100644
--- a/net/cvsync/Makefile
+++ b/net/cvsync/Makefile
@@ -17,28 +17,30 @@ USE_GMAKE= yes
USE_RC_SUBR= cvsyncd
USE_OPENSSL= yes
-MAN1= cvscan.1 cvsup2cvsync.1 cvsync.1 cvsync2cvsup.1 cvsyncd.1 \
- rcscan.1 rcscmp.1
PORTDOCS= ChangeLog FAQ TODO
PORTEXAMPLES= cvsync.conf cvsyncd-FreeBSD.conf \
cvsyncd-NetBSD.conf cvsyncd-OpenBSD.conf
-MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
+MAKE_ENV+= DESTDIR="${STAGEDIR}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ INSTALL= \
+ INSTALL_BIN_OPTS="${INSTALL_PROGRAM}" \
+ INSTALL_MAN_OPTS="${INSTALL_MAN}"
MAKE_FLAGS= OSVER="${OSVERSION}" HASH_TYPE=openssl
OPTIONS_DEFINE= DOCS EXAMPLES
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC}/samples && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/samples && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/net/cvsync/files/patch-mk-base.mk b/net/cvsync/files/patch-mk-base.mk
new file mode 100644
index 000000000000..0d07afc94873
--- /dev/null
+++ b/net/cvsync/files/patch-mk-base.mk
@@ -0,0 +1,13 @@
+--- mk/base.mk.orig 2005-01-24 16:45:13.000000000 +0900
++++ mk/base.mk 2013-10-07 04:38:38.000000000 +0900
+@@ -91,8 +91,8 @@
+ endif # SunOS
+
+ PREFIX ?= /usr/local
+-BINDIR ?= ${PREFIX}/bin
+-MANDIR ?= ${PREFIX}/man
++BINDIR ?= ${DESTDIR}${PREFIX}/bin
++MANDIR ?= ${DESTDIR}${PREFIX}/man
+
+ BINOWN ?= root
+ BINGRP ?= wheel
diff --git a/net/cvsync/pkg-plist b/net/cvsync/pkg-plist
index 638ec32c0769..702a4a9e24d6 100644
--- a/net/cvsync/pkg-plist
+++ b/net/cvsync/pkg-plist
@@ -6,3 +6,10 @@ bin/cvsync2cvsup
bin/cvsyncd
bin/rcscan
bin/rcscmp
+man/man1/cvscan.1.gz
+man/man1/cvsup2cvsync.1.gz
+man/man1/cvsync.1.gz
+man/man1/cvsync2cvsup.1.gz
+man/man1/cvsyncd.1.gz
+man/man1/rcscan.1.gz
+man/man1/rcscmp.1.gz