| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.43 2016/07/09 06:39:03 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.44 2016/11/20 01:11:40 rillig Exp $ |
2 | | | 2 | |
3 | .include "version.mk" | | 3 | .include "version.mk" |
4 | | | 4 | |
5 | DISTNAME= webmin-${WBM_VERSION} | | 5 | DISTNAME= webmin-${WBM_VERSION} |
6 | PKGREVISION= 8 | | 6 | PKGREVISION= 8 |
7 | CATEGORIES= sysutils www | | 7 | CATEGORIES= sysutils www |
8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webadmin/} | | 8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webadmin/} |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.webmin.com/ | | 11 | HOMEPAGE= http://www.webmin.com/ |
12 | COMMENT= Perl web server and CGI for Unix system administration | | 12 | COMMENT= Perl web server and CGI for Unix system administration |
13 | LICENSE= modified-bsd | | 13 | LICENSE= modified-bsd |
14 | | | 14 | |
| @@ -65,35 +65,35 @@ CHECK_INTERPRETER_SKIP+= share/webmin/we | | | @@ -65,35 +65,35 @@ CHECK_INTERPRETER_SKIP+= share/webmin/we |
65 | ALL_ENV+= tempdir=${WRKDIR}/.tmp | | 65 | ALL_ENV+= tempdir=${WRKDIR}/.tmp |
66 | | | 66 | |
67 | .include "../../security/openssl/buildlink3.mk" | | 67 | .include "../../security/openssl/buildlink3.mk" |
68 | | | 68 | |
69 | post-extract: | | 69 | post-extract: |
70 | ${CP} ${FILESDIR}/acl_config-dragonfly ${WRKSRC}/acl/config-dragonfly | | 70 | ${CP} ${FILESDIR}/acl_config-dragonfly ${WRKSRC}/acl/config-dragonfly |
71 | ${CP} ${FILESDIR}/init_config-dragonfly ${WRKSRC}/init/config-dragonfly | | 71 | ${CP} ${FILESDIR}/init_config-dragonfly ${WRKSRC}/init/config-dragonfly |
72 | ${CP} ${FILESDIR}/man_config-dragonfly ${WRKSRC}/man/config-dragonfly | | 72 | ${CP} ${FILESDIR}/man_config-dragonfly ${WRKSRC}/man/config-dragonfly |
73 | ${CP} ${FILESDIR}/proc_config-dragonfly ${WRKSRC}/proc/config-dragonfly | | 73 | ${CP} ${FILESDIR}/proc_config-dragonfly ${WRKSRC}/proc/config-dragonfly |
74 | ${RM} -r ${WRKSRC}/acl/Authen-SolarisRBAC-0.1* | | 74 | ${RM} -r ${WRKSRC}/acl/Authen-SolarisRBAC-0.1* |
75 | | | 75 | |
76 | pre-configure: | | 76 | pre-configure: |
77 | cd ${WRKSRC} && \ | | 77 | cd ${WRKSRC} && \ |
78 | ptn="@"`${ECHO} ${WEBMIN_MINIMAL_MODULES}|sed -e 's/ /@/g'`"@" && \ | | 78 | for m in */module.info; do \ |
79 | for m in `${ECHO} */module.info | sed -e 's/\/module.info//g'`; do \ | | 79 | moduledir=$${m%/module.info}; \ |
80 | case $${ptn} in \ | | 80 | case $${moduledir} in \ |
81 | *@$${m}@*) ;; \ | | 81 | ${WEBMIN_MINIMAL_MODULES:ts|}) ;; \ |
82 | *) rm -rf $${m} ;; \ | | 82 | *) rm -rf $${moduledir} ;; \ |
83 | esac; \ | | 83 | esac; \ |
84 | done && \ | | 84 | done && \ |
85 | for t in `${ECHO} */theme.info | sed -e 's/\/theme.info//g'`; do\ | | 85 | for t in */theme.info; do \ |
86 | rm -rf $${t}; \ | | 86 | rm -rf $${t%/theme.info}; \ |
87 | done && \ | | 87 | done && \ |
88 | touch ${WRKSRC}/minimal-install | | 88 | touch ${WRKSRC}/minimal-install |
89 | | | 89 | |
90 | do-configure: | | 90 | do-configure: |
91 | sed -e "s,@WEBMIN_EGDIR@,${DESTDIR}${WEBMIN_EGDIR},g" \ | | 91 | sed -e "s,@WEBMIN_EGDIR@,${DESTDIR}${WEBMIN_EGDIR},g" \ |
92 | -e "s,@WEBMIN_VARDIR@,${DESTDIR}${WEBMIN_VARDIR},g" \ | | 92 | -e "s,@WEBMIN_VARDIR@,${DESTDIR}${WEBMIN_VARDIR},g" \ |
93 | -e "s,@PERL5@,"${PERL5:Q}",g" \ | | 93 | -e "s,@PERL5@,"${PERL5:Q}",g" \ |
94 | ${FILESDIR}/setup-pre.sh > ${WRKSRC}/setup-pre.sh | | 94 | ${FILESDIR}/setup-pre.sh > ${WRKSRC}/setup-pre.sh |
95 | cd ${WRKSRC}; for file in acl/config acl/config-*; do \ | | 95 | cd ${WRKSRC}; for file in acl/config acl/config-*; do \ |
96 | sed -e "s,^ssleay=.*,ssleay=${SSLBASE}/bin/openssl," \ | | 96 | sed -e "s,^ssleay=.*,ssleay=${SSLBASE}/bin/openssl," \ |
97 | "$$file" > "$$file.new"; \ | | 97 | "$$file" > "$$file.new"; \ |
98 | ${MV} -f "$$file.new" "$$file"; \ | | 98 | ${MV} -f "$$file.new" "$$file"; \ |
99 | done | | 99 | done |