aboutsummaryrefslogtreecommitdiffstats
path: root/www/moinmoin/Makefile
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-05-15 06:02:22 +0800
committerpat <pat@FreeBSD.org>2002-05-15 06:02:22 +0800
commitbd796044bbd831dd711ea6c53c5922ce54d4f2e6 (patch)
tree0dd92593d163326f924e380bb54b96e3bfe19754 /www/moinmoin/Makefile
parent091f876fa4a477b351e64b74032f5aab7107c72c (diff)
downloadfreebsd-ports-gnome-bd796044bbd831dd711ea6c53c5922ce54d4f2e6.tar.gz
freebsd-ports-gnome-bd796044bbd831dd711ea6c53c5922ce54d4f2e6.tar.zst
freebsd-ports-gnome-bd796044bbd831dd711ea6c53c5922ce54d4f2e6.zip
Update to 1.0
PR: 37941 Submitted by: maintainer
Diffstat (limited to 'www/moinmoin/Makefile')
-rw-r--r--www/moinmoin/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/www/moinmoin/Makefile b/www/moinmoin/Makefile
index a7d9f42d8b84..e51c025462d7 100644
--- a/www/moinmoin/Makefile
+++ b/www/moinmoin/Makefile
@@ -6,32 +6,29 @@
#
PORTNAME= moinmoin
-PORTVERSION= 0.11
+PORTVERSION= 1.0
CATEGORIES= www python
-MASTER_SITES= http://twiki.org/p/pub/TWiki/TWikiDrawPlugin/ \
- ${MASTER_SITE_SOURCEFORGE} \
- http://fallin.lv/distfiles/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ http://twiki.org/p/pub/TWiki/TWikiDrawPlugin/:twiki \
+ http://fallin.lv/distfiles/:twiki
MASTER_SITE_SUBDIR= moin
DISTNAME= moin-${PORTVERSION}
-DISTFILES= ${DISTNAME}.tgz twikidraw.jar
-EXTRACT_ONLY= ${DISTNAME}.tgz
+DISTFILES= ${DISTNAME}.tar.gz twikidraw.jar:twiki
+EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= perky@fallin.lv
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-PLIST_SUB+= PYTHON_SITELIB=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||}
+PLIST_SUB+= PYTHON_SITELIB=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||} \
+ CGIUSER=${CGIUSER} CGIROOT=${CGIROOT}
-CGIUSER?= moinmoin
+CGIUSER= moinmoin
CGIUSERID?= 192
CGIROOT= ${PREFIX}/www/cgi-bin
HTDOCSROOT= ${PREFIX}/www/data
MOINDIR= ${PREFIX}/share/moin
-do-configure:
- @# Add the username, uid, group and gid
- ${SH} ${FILESDIR}/configure.sh ${CGIUSER} ${CGIUSERID}
-
post-patch:
@# Tweak configuration
${SED} -e 's|^url_prefix =.*$$|url_prefix="/moin"|g' \
@@ -45,6 +42,10 @@ post-build:
-DMOIN_PREFIX='"${MOINDIR}"' \
${FILESDIR}/wrapper.c
+pre-install:
+ PKG_PREFIX=${PREFIX} INST_UID="${CGIUSERID}" \
+ ${SH} pkg-install ${PKGNAME} PRE-INSTALL
+
post-install:
${INSTALL_DATA} ${DISTDIR}/twikidraw.jar ${MOINDIR}/htdocs/applets/TWikiDrawPlugin/
@@ -64,6 +65,7 @@ post-install:
${MOINDIR}/cgi-bin/moin_config.py
${TEST} -d ${MOINDIR}/data/text || \
${LN} -sf ${MOINDIR}/data/text.default ${MOINDIR}/data/text
+ -${MKDIR} ${HTDOCSROOT}
-${LN} -sf ${MOINDIR}/htdocs ${HTDOCSROOT}/moin
@${CAT} ${PKGMESSAGE}