aboutsummaryrefslogtreecommitdiffstats
path: root/devel/cvsweb3
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2019-01-31 21:46:21 +0800
committertobik <tobik@FreeBSD.org>2019-01-31 21:46:21 +0800
commit9f63acaa7c10bb975b25fb2fcccf919adb5d811c (patch)
tree5fd1eec7c358bd99d4fdf3aaa437f599b415699c /devel/cvsweb3
parentb7815013c07084b8d4cea33edf06be80fa2f1db2 (diff)
downloadfreebsd-ports-gnome-9f63acaa7c10bb975b25fb2fcccf919adb5d811c.tar.gz
freebsd-ports-gnome-9f63acaa7c10bb975b25fb2fcccf919adb5d811c.tar.zst
freebsd-ports-gnome-9f63acaa7c10bb975b25fb2fcccf919adb5d811c.zip
devel/cvsweb3: Do not set SUB_LIST after bsd.port.pre.mk
The framework already adds PREFIX and DOCSDIR to it, so drop it entirely. Move variables that do not need to be after bsd.port.pre.mk up.
Diffstat (limited to 'devel/cvsweb3')
-rw-r--r--devel/cvsweb3/Makefile29
1 files changed, 14 insertions, 15 deletions
diff --git a/devel/cvsweb3/Makefile b/devel/cvsweb3/Makefile
index dd68092474ea..95fa93aa21d1 100644
--- a/devel/cvsweb3/Makefile
+++ b/devel/cvsweb3/Makefile
@@ -32,11 +32,25 @@ CONFLICTS= cvsweb-2.*
USES= perl5 shebangfix
SHEBANG_FILES= cvsweb.cgi
+
NO_BUILD= yes
NO_ARCH= yes
+PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}" CSSDIR="${CSSDIR}" \
+ DIRPREFIX="${DIRPREFIX}"
+SUB_FILES= pkg-message
+
OPTIONS_DEFINE= DOCS EXAMPLES
+CONFFILES= cvsweb.conf \
+ cvsweb.conf-freebsd \
+ cvsweb.conf-openbsd \
+ cvsweb.conf-netbsd \
+ cvsweb.conf-ruby
+
+# Specify the title of your cvsweb site.
+TITLE?= My CVS Repository
+
.include <bsd.port.pre.mk>
# Specify where your repository belongs.
@@ -45,9 +59,6 @@ OPTIONS_DEFINE= DOCS EXAMPLES
CVSROOT= /home/cvs
.endif
-# Specify the title of your cvsweb site.
-TITLE?= My CVS Repository
-
# Specify these directories in relative paths to ${PREFIX}.
.if exists(${PREFIX}/www/cgi-bin)
DIRPREFIX= www
@@ -62,18 +73,6 @@ CGIDIR?= ${DIRPREFIX}/cgi-bin
ICONSDIR?= ${DIRPREFIX}/icons
CSSDIR?= ${DIRPREFIX}/data/css
-CONFFILES= cvsweb.conf \
- cvsweb.conf-freebsd \
- cvsweb.conf-openbsd \
- cvsweb.conf-netbsd \
- cvsweb.conf-ruby
-
-PLIST_SUB+= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}" CSSDIR="${CSSDIR}" \
- DIRPREFIX="${DIRPREFIX}"
-
-SUB_FILES= pkg-message
-SUB_LIST= PREFIX="${PREFIX}" DOCSDIR="${DOCSDIR}"
-
post-patch:
@${SED} -i '' -e 's,/usr/local/etc/,${PREFIX}/etc/,' \
-e 's,\(qw(hi.*)\),(\1),' ${WRKSRC}/cvsweb.cgi