summaryrefslogtreecommitdiff
path: root/www/iasp/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2003-01-02 06:40:32 +0000
committerjlam <jlam>2003-01-02 06:40:32 +0000
commit8b9ca9a66258f215a9ebf4b60397e0e3dea6ed6e (patch)
treea21e363233793f2a3cfa664073b69fb60cac3105 /www/iasp/Makefile
parent09d101d21dd3059b30e2e18cb1e4d9b0b57a9d78 (diff)
downloadpkgsrc-8b9ca9a66258f215a9ebf4b60397e0e3dea6ed6e.tar.gz
Require a iasp user and group (defaulting to APACHE_{USER,GROUP}) and
run the iASP proxy server as that user for improved security. Bump PKGREVISION on www/iasp to 1.
Diffstat (limited to 'www/iasp/Makefile')
-rw-r--r--www/iasp/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/www/iasp/Makefile b/www/iasp/Makefile
index 31e0f3df4b7..78df06cc70c 100644
--- a/www/iasp/Makefile
+++ b/www/iasp/Makefile
@@ -1,13 +1,15 @@
-# $NetBSD: Makefile,v 1.1.1.1 2003/01/01 07:03:40 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2003/01/02 06:40:32 jlam Exp $
.include "../iasp/Makefile.common"
PKGNAME= iasp-${IASP_VERSION}
+PKGREVISION= 1
COMMENT= Instant ASP: Java implementation of Active Server Pages
WRKSRC= ${WRKDIR}/${IASP_DIR}
SCRIPTS_ENV+= CAT=${CAT:Q}
+SCRIPTS_ENV+= CHMOD=${CHMOD:Q}
SCRIPTS_ENV+= ECHO=${ECHO:Q}
SCRIPTS_ENV+= SED=${SED:Q}
SCRIPTS_ENV+= SH=${SH:Q}
@@ -15,7 +17,17 @@ SCRIPTS_ENV+= IASP=${IASP_DESTDIR}
FILES_SUBST= IASP=${IASP_DESTDIR}
PLIST_SUBST= IASP=${IASP_DESTDIR:S/^${PREFIX}\///}
-OWN_DIRS= ${IASP_DESTDIR} ${IASP_DESTDIR}/logs
+IASP_USER?= ${APACHE_USER}
+IASP_GROUP?= ${APACHE_GROUP}
+BUILD_DEFS+= IASP_USER IASP_GROUP
+FILES_SUBST+= IASP_USER=${IASP_USER}
+FILES_SUBST+= IASP_GROUP=${IASP_GROUP}
+
+PKG_USERS= ${IASP_USER}:${IASP_GROUP}
+PKG_GROUPS= ${IASP_GROUP}
+
+OWN_DIRS= ${IASP_DESTDIR}
+OWN_DIRS_PERMS= ${IASP_DESTDIR}/logs ${IASP_USER} ${IASP_GROUP} 0750
CONFDIR= ${IASP_DESTDIR}/properties
SFILES= cdonts.properties dbserver.properties
SFILES+= ejb.properties loadbalance.properties