summaryrefslogtreecommitdiff
path: root/www/screws/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2005-03-20 17:27:31 +0000
committerjmmv <jmmv@pkgsrc.org>2005-03-20 17:27:31 +0000
commitce59546e0bc455af2194974729eab95a91db5833 (patch)
treec7f56427304882bdaf331cc5561ab17104eebe2d /www/screws/Makefile
parent35808696c5ccc2ef8381a1bc07e886bb835ca35e (diff)
downloadpkgsrc-ce59546e0bc455af2194974729eab95a91db5833.tar.gz
Multiple fixes:
- Let the used user and group be customized through SCREWS_USER and SCREW_GROUPS. - Fix usage of PKG_USERS, which broke the build as seen in bulk build logs. - Fix handling of configuration file (stale files could be left before in ${PREFIX}/etc). - Honour VARBASE. - Do not hardcode /usr/pkg in patches. - Fix the "hsml" module so that it can find the lua library (missing rpaths). Bump PKGREVISION to 3 due to all the previous changes. Most of this brokenness was present since the package was first imported. (Oh man, I hate packages reinventing the wheel when it comes to the build infrastructure... I'm sure it's still not clean enough.)
Diffstat (limited to 'www/screws/Makefile')
-rw-r--r--www/screws/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/www/screws/Makefile b/www/screws/Makefile
index 878fe20c28e..829aece9bea 100644
--- a/www/screws/Makefile
+++ b/www/screws/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2004/12/28 02:47:50 reed Exp $
+# $NetBSD: Makefile,v 1.5 2005/03/20 17:27:31 jmmv Exp $
#
DISTNAME= screws-0.54
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= www
MASTER_SITES= ftp://ftp.nopcode.org/prj/screws/
@@ -14,8 +14,12 @@ USE_PERL5= YES
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
-PKG_USERS= screws
-PKG_GROUPS= www
+BUILD_DEFS+= SCREWS_USER SCREWS_GROUP
+
+PKG_USERS= ${SCREWS_USER}:${SCREWS_GROUP}
+PKG_GROUPS= ${SCREWS_GROUP}
+
+MAKE_ENV+= ETCPREFIX=${PKG_SYSCONFDIR}
EGDIR= ${PREFIX}/share/examples
CONF_FILES= ${EGDIR}/default.conf ${PKG_SYSCONFDIR}/screws.conf
@@ -23,6 +27,12 @@ FILESDIR= ${WRKSRC}/src/Utils/files
RCD_SCRIPTS= screws
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= "Fixing paths."
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= src/Utils/screwsctl
+SUBST_SED.paths= -e 's|/var/log|${VARBASE}/log|g'
+
.include "../../lang/lua/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"