| @@ -1,68 +1,67 @@ | | | @@ -1,68 +1,67 @@ |
1 | # $NetBSD: Makefile,v 1.7 2019/06/18 10:21:37 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2019/06/22 09:31:00 nia Exp $ |
2 | | | 2 | |
3 | DISTNAME= znc-1.7.3 | | 3 | DISTNAME= znc-1.7.4 |
4 | PKGREVISION= 2 | | | |
5 | CATEGORIES= net | | 4 | CATEGORIES= net |
6 | MASTER_SITES= https://znc.in/releases/archive/ | | 5 | MASTER_SITES= https://znc.in/releases/archive/ |
7 | | | 6 | |
8 | MAINTAINER= nia@NetBSD.org | | 7 | MAINTAINER= nia@NetBSD.org |
9 | HOMEPAGE= https://znc.in/ | | 8 | HOMEPAGE= https://znc.in/ |
10 | COMMENT= Advanced IRC bouncer with IPv6 and SSL support | | 9 | COMMENT= Advanced IRC bouncer with IPv6 and SSL support |
11 | LICENSE= gnu-gpl-v2 | | 10 | LICENSE= gnu-gpl-v2 |
12 | | | 11 | |
13 | USE_LANGUAGES= c c++ | | 12 | USE_LANGUAGES= c c++ |
14 | USE_LIBTOOL= yes | | 13 | USE_LIBTOOL= yes |
15 | USE_TOOLS+= bsdtar gmake pkg-config | | 14 | USE_TOOLS+= bsdtar gmake pkg-config |
16 | GNU_CONFIGURE= yes | | 15 | GNU_CONFIGURE= yes |
17 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 16 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
18 | PKGCONFIG_OVERRIDE+= znc.pc.in | | 17 | PKGCONFIG_OVERRIDE+= znc.pc.in |
19 | | | 18 | |
20 | PLIST_SRC= PLIST | | 19 | PLIST_SRC= PLIST |
21 | PLIST_SUBST+= ZNC_USER="${ZNC_USER}" | | 20 | PLIST_SUBST+= ZNC_USER="${ZNC_USER}" |
22 | PLIST_SUBST+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}" | | 21 | PLIST_SUBST+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}" |
23 | PLIST_SUBST+= PKG_PREFIX="${PREFIX}" | | 22 | PLIST_SUBST+= PKG_PREFIX="${PREFIX}" |
24 | | | 23 | |
25 | PKG_SYSCONFSUBDIR= ${PKGBASE} | | 24 | PKG_SYSCONFSUBDIR= ${PKGBASE} |
26 | | | 25 | |
27 | .include "../../mk/bsd.prefs.mk" | | 26 | .include "../../mk/bsd.prefs.mk" |
28 | | | 27 | |
29 | ZNC_USER?= znc | | 28 | ZNC_USER?= znc |
30 | ZNC_GROUP?= znc | | 29 | ZNC_GROUP?= znc |
31 | PKG_GROUPS= ${ZNC_GROUP} | | 30 | PKG_GROUPS= ${ZNC_GROUP} |
32 | PKG_USERS= ${ZNC_USER}:${ZNC_GROUP} | | 31 | PKG_USERS= ${ZNC_USER}:${ZNC_GROUP} |
33 | PKG_GROUPS_VARS= ZNC_USER | | 32 | PKG_GROUPS_VARS= ZNC_USER |
34 | PKG_USERS_VARS= ZNC_GROUP | | 33 | PKG_USERS_VARS= ZNC_GROUP |
35 | | | 34 | |
36 | SUBST_CLASSES+= fix-man-znc | | 35 | SUBST_CLASSES+= fix-man-znc |
37 | SUBST_STAGE.fix-man-znc= pre-configure | | 36 | SUBST_STAGE.fix-man-znc= pre-configure |
38 | SUBST_MESSAGE.fix-man-znc= Fixing absolute paths in znc.1 manpage. | | 37 | SUBST_MESSAGE.fix-man-znc= Fixing absolute paths in znc.1 manpage. |
39 | SUBST_FILES.fix-man-znc= man/znc.1 | | 38 | SUBST_FILES.fix-man-znc= man/znc.1 |
40 | SUBST_SED.fix-man-znc= -e 's,\~\/\.znc,${PKG_SYSCONFDIR},g' | | 39 | SUBST_SED.fix-man-znc= -e 's,\~\/\.znc,${PKG_SYSCONFDIR},g' |
41 | SUBST_SED.fix-man-znc+= -e 's,\/usr\/local,${PREFIX},g' | | 40 | SUBST_SED.fix-man-znc+= -e 's,\/usr\/local,${PREFIX},g' |
42 | | | 41 | |
43 | SUBST_CLASSES+= fix-tar | | 42 | SUBST_CLASSES+= fix-tar |
44 | SUBST_STAGE.fix-tar= pre-build | | 43 | SUBST_STAGE.fix-tar= pre-build |
45 | SUBST_MESSAGE.fix-tar= Replace tar executable name. | | 44 | SUBST_MESSAGE.fix-tar= Replace tar executable name. |
46 | SUBST_FILES.fix-tar+= modules/modperl/Makefile.inc | | 45 | SUBST_FILES.fix-tar+= modules/modperl/Makefile.inc |
47 | SUBST_FILES.fix-tar+= modules/modpython/Makefile.inc | | 46 | SUBST_FILES.fix-tar+= modules/modpython/Makefile.inc |
48 | SUBST_SED.fix-tar= -e 's,tar -xf ,bsdtar -xf ,g' | | 47 | SUBST_SED.fix-tar= -e 's,tar -xf ,bsdtar -xf ,g' |
49 | | | 48 | |
50 | BUILD_DEFS+= VARBASE | | 49 | BUILD_DEFS+= VARBASE |
51 | BUILD_DEFS+= PKG_SYSCONFDIR | | 50 | BUILD_DEFS+= PKG_SYSCONFDIR |
52 | BUILD_DEFS+= ZNC_USER | | 51 | BUILD_DEFS+= ZNC_USER |
53 | BUILD_DEFS+= ZNC_GROUP | | 52 | BUILD_DEFS+= ZNC_GROUP |
54 | | | 53 | |
55 | RCD_SCRIPTS+= znc | | 54 | RCD_SCRIPTS+= znc |
56 | PTHREAD_AUTO_VARS= yes | | 55 | PTHREAD_AUTO_VARS= yes |
57 | | | 56 | |
58 | OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR} ${ZNC_USER} ${ZNC_GROUP} 0755 | | 57 | OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR} ${ZNC_USER} ${ZNC_GROUP} 0755 |
59 | | | 58 | |
60 | MANCOMPRESSED= yes | | 59 | MANCOMPRESSED= yes |
61 | | | 60 | |
62 | .include "options.mk" | | 61 | .include "options.mk" |
63 | | | 62 | |
64 | .include "../../devel/libgetopt/buildlink3.mk" | | 63 | .include "../../devel/libgetopt/buildlink3.mk" |
65 | .include "../../security/openssl/buildlink3.mk" | | 64 | .include "../../security/openssl/buildlink3.mk" |
66 | .include "../../textproc/icu/buildlink3.mk" | | 65 | .include "../../textproc/icu/buildlink3.mk" |
67 | .include "../../mk/pthread.buildlink3.mk" | | 66 | .include "../../mk/pthread.buildlink3.mk" |
68 | .include "../../mk/bsd.pkg.mk" | | 67 | .include "../../mk/bsd.pkg.mk" |