blob: 926ed9d44eadfb48d0df0ebe0c6769330dbef073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $NetBSD: Makefile,v 1.4 2001/06/11 06:34:21 jlam Exp $
#
DISTNAME= gale-0.99a
CATEGORIES= chat
MASTER_SITES= http://download.gale.org/
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
USERDEL= /usr/sbin/userdel
GROUPDEL= /usr/sbin/groupdel
.else
DEPENDS+= user>=20000313:../../sysutils/user
ADDUSER= ${LOCALBASE}/sbin/useradd
ADDGROUP= ${LOCALBASE}/sbin/groupadd
USERDEL= ${LOCALBASE}/sbin/userdel
GROUPDEL= ${LOCALBASE}/sbin/groupdel
.endif
.elif ${OPSYS} == "SunOS"
ADDUSER= useradd
ADDGROUP= groupadd
USERDEL= userdel
GROUPDEL= groupdel
.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
pre-install:
${SED} -e 's|@GALE_USER@|${GALE_USER}|g' \
-e 's|@GALE_GROUP@|${GALE_GROUP}|g' \
-e 's|@USERDEL@|${USERDEL}|g' \
-e 's|@GROUPDEL@|${GROUPDEL}|g' \
< ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} -e 's|@GALE_USER@|${GALE_USER}|g' \
-e 's|@GALE_GROUP@|${GALE_GROUP}|g' \
-e 's|@USERDIR@|${USERDIR}|g' \
-e 's|@ADDUSER@|${ADDUSER}|g' \
-e 's|@ADDGROUP@|${ADDGROUP}|g' \
-e 's|@CHGRP@|${CHGRP}|g' \
-e 's|@GREP@|${GREP}|g' \
-e 's|@RM@|${RM}|g' \
-e 's|@TOUCH@|${TOUCH}|g' \
< ${PKGDIR}/INSTALL > ${INSTALL_FILE}
${SH} ${INSTALL_FILE}
.include "../../mk/bsd.pkg.mk"
|