summaryrefslogtreecommitdiff
path: root/chat/gale/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-19 21:05:55 +0000
committerjlam <jlam@pkgsrc.org>2001-11-19 21:05:55 +0000
commite2402863c0ff30674bea9705631bf190bb176c92 (patch)
treeaf2c540fcee4e0077e4d99dc99784bdb0442ed29 /chat/gale/Makefile
parent38c087a3520d66d8b4521be39e2b13ddf9f85f03 (diff)
downloadpkgsrc-e2402863c0ff30674bea9705631bf190bb176c92.tar.gz
Respect ${CONFDIR} and use the common INSTALL/DEINSTALL scripts instead of
the custom ones. Also fix the directory handling during post-installation and strongly buildlinkify.
Diffstat (limited to 'chat/gale/Makefile')
-rw-r--r--chat/gale/Makefile84
1 files changed, 39 insertions, 45 deletions
diff --git a/chat/gale/Makefile b/chat/gale/Makefile
index 1b51c3bc2ff..e0e81b608f5 100644
--- a/chat/gale/Makefile
+++ b/chat/gale/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2001/11/19 04:58:59 lukem Exp $
+# $NetBSD: Makefile,v 1.7 2001/11/19 21:05:55 jlam Exp $
#
DISTNAME= gale-0.99a
@@ -9,52 +9,46 @@ MAINTAINER= lukem@netbsd.org
HOMEPAGE= http://gale.org
COMMENT= secure instant messaging system
-DEPENDS+= adns-1.0:../../net/adns/
-DEPENDS+= boehm-gc-5.3:../../devel/boehm-gc/
-DEPENDS+= rsaref-2.0p3:../../security/rsaref/
-
-.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "NetBSD"
-.if exists(/usr/sbin/user)
-ADDUSER= /usr/sbin/useradd
-ADDGROUP= /usr/sbin/groupadd
-.else
-DEPENDS+= user>=20000313:../../sysutils/user
-ADDUSER= ${LOCALBASE}/sbin/useradd
-ADDGROUP= ${LOCALBASE}/sbin/groupadd
-.endif
-.elif ${OPSYS} == "SunOS"
-ADDUSER= useradd
-ADDGROUP= groupadd
-.endif
-WRKSRC= ${WRKDIR}/${DISTNAME}
-DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
-INSTALL_FILE= ${WRKDIR}/INSTALL
-
-GNU_CONFIGURE= YES
-USE_LIBTOOL= YES
-LTCONFIG_OVERRIDE=${WRKSRC}/ltconfig
-CPPFLAGS+= -I${LOCALBASE}/include/rsaref -I${LOCALBASE}/include/w3c-libwww
-
-GALE_USER= gale
-GALE_GROUP= gale
-
-FILES_SUBST= GALE_USER=${GALE_USER}
-FILES_SUBST+= GALE_GROUP=${GALE_GROUP}
-
-FILES_SUBST+= ADDGROUP=${ADDGROUP:Q}
-FILES_SUBST+= ADDUSER=${ADDUSER:Q}
-FILES_SUBST+= CAT=${CAT:Q}
-FILES_SUBST+= CHGRP=${CHGRP:Q}
-FILES_SUBST+= ID=${ID:Q}
-FILES_SUBST+= RM=${RM:Q}
-FILES_SUBST+= TOUCH=${TOUCH:Q}
-
-FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
+USE_BUILDLINK_ONLY= YES
+USE_GNU_READLINE= # needs rl_named_function()
+USE_LIBTOOL= YES
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig ${WRKSRC}/liboopltconfig
+
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS= --sysconfdir=${CONFDIR}
+CONFIGURE_ENV+= PROG_GLIB_CONFIG="${GLIB_CONFIG}"
+
+CPPFLAGS+= -I${BUILDLINK_DIR}/include/rsaref
+CPPFLAGS+= -I${BUILDLINK_DIR}/include/w3c-libwww
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+PKG_USER= gale
+PKG_GROUP= gale
+
+SUPPORT_FILES= ${EGDIR}/COPYING ${CONFDIR}/gale/COPYING
+SUPPORT_FILES+= ${EGDIR}/ROOT ${CONFDIR}/gale/auth/trusted/ROOT
+OWN_DIRS= ${CONFDIR}/gale
+OWN_DIRS+= ${CONFDIR}/gale/auth
+OWN_DIRS+= ${CONFDIR}/gale/auth/private
+OWN_DIRS+= ${CONFDIR}/gale/auth/trusted
+OWN_DIRS_PERMS= ${CONFDIR}/gale/auth/cache ${SHAREOWN} ${SHAREGRP} 0777
+OWN_DIRS_PERMS+= ${CONFDIR}/gale/auth/local ${SHAREOWN} ${SHAREGRP} 1777
pre-install:
- ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
- ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/kutils/ROOT ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${EGDIR}
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+
+.include "../../devel/boehm-gc/buildlink.mk"
+.include "../../devel/glib/buildlink.mk"
+.include "../../devel/readline/buildlink.mk"
+.include "../../net/adns/buildlink.mk"
+.include "../../security/rsaref/buildlink.mk"
+.include "../../www/libwww/buildlink.mk"
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"