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.
This commit is contained in:
parent
adba410d88
commit
55e91b88f1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=491719
1 changed files with 14 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue