DESTDIR support for webmin packages.

This commit is contained in:
joerg 2010-07-11 17:41:01 +00:00
parent 03fd660ff8
commit f190f3f229
43 changed files with 136 additions and 51 deletions

View file

@ -1,19 +1,20 @@
# $NetBSD: Makefile,v 1.8 2009/05/16 17:10:40 kefren Exp $
# $NetBSD: Makefile,v 1.9 2010/07/11 17:41:01 joerg Exp $
WBM_NAME= apache
COMMENT= Webmin module for configuring Apache servers
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
CONF_FILES_PERMS+= ${WBM_EGDIR}/${WBM_NAME}/site \
${PKG_SYSCONFDIR}/${WBM_NAME}/site \
${ROOT_USER} ${ROOT_GROUP} 0644
CONF_FILES+= ${WBM_EGDIR}/${WBM_NAME}/site \
${PKG_SYSCONFDIR}/${WBM_NAME}/site
post-build:
${TOUCH} ${TOUCH_ARGS} ${WRKDIR}/site
post-install:
${INSTALL_DATA} ${WRKDIR}/site ${WBM_EGDIR}/${WBM_NAME}/site
${INSTALL_DATA} ${WRKDIR}/site ${DESTDIR}${WBM_EGDIR}/${WBM_NAME}/site
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:22:58 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:01 joerg Exp $
WBM_NAME= at
COMMENT= Webmin module to schedule execution of commands
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2007/04/21 05:22:58 obache Exp $
# $NetBSD: Makefile,v 1.3 2010/07/11 17:41:01 joerg Exp $
WBM_NAME= bandwidth
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES= net
COMMENT= Webmin module to view bandwidth usage
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2009/09/18 11:04:07 obache Exp $
# $NetBSD: Makefile,v 1.7 2010/07/11 17:41:01 joerg Exp $
WBM_NAME= bind8
@ -6,5 +6,7 @@ COMMENT= Webmin module for managing ISC BIND 8.x DNS servers
PKGREVISION= 1
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:22:59 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:02 joerg Exp $
WBM_NAME= change-user
COMMENT= Webmin module to personalize Webmin user sessions
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.4 2007/04/21 05:22:59 obache Exp $
# $NetBSD: Makefile,v 1.5 2010/07/11 17:41:02 joerg Exp $
WBM_NAME= cluster-copy
COMMENT= Webmin module to schedule file transfers within a Webmin cluster
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.4 2007/04/21 05:22:59 obache Exp $
# $NetBSD: Makefile,v 1.5 2010/07/11 17:41:02 joerg Exp $
WBM_NAME= cluster-cron
COMMENT= Webmin module to schedule cron jobs within a Webmin cluster
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2007/04/21 05:22:59 obache Exp $
# $NetBSD: Makefile,v 1.3 2010/07/11 17:41:02 joerg Exp $
WBM_NAME= cluster-passwd
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES= cluster-useradmin
COMMENT= Webmin module to change users' passwords within a Webmin cluster
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:22:59 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:02 joerg Exp $
WBM_NAME= cluster-shell
COMMENT= Webmin module to run commands across a Webmin cluster
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2007/09/01 06:35:01 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:02 joerg Exp $
WBM_NAME= cluster-useradmin
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES= useradmin
COMMENT= Webmin module to manage users & groups within a Webmin cluster
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:00 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:03 joerg Exp $
WBM_NAME= cluster-webmin
COMMENT= Webmin module to manage Webmin settings across a Webmin cluster
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:00 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:03 joerg Exp $
WBM_NAME= custom
COMMENT= Webmin module for creating custom action buttons
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2007/06/09 23:02:41 joerg Exp $
# $NetBSD: Makefile,v 1.6 2010/07/11 17:41:03 joerg Exp $
DISTNAME= cyrus-imapd-mod-1.6
WBM_NAME= cyrus-imapd
@ -13,6 +13,8 @@ DEPENDS+= p5-Tree-Simple-[0-9]*:../../devel/p5-Tree-Simple
HOMEPAGE= http://www.tecchio.net/webmin/cyrus/
COMMENT= Webmin module for administering Cyrus IMAP
PKG_DESTDIR_SUPPORT= user-destdir
WBM_STD_MODULE= NO
.include "../../sysutils/webmin/wbm.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:00 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:03 joerg Exp $
WBM_NAME= dhcpd
COMMENT= Webmin module for managing ISC DHCPd
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:00 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:03 joerg Exp $
WBM_NAME= dovecot
COMMENT= Webmin module for configuring the Dovecot IMAP/POP3 server
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:00 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:03 joerg Exp $
WBM_NAME= fetchmail
COMMENT= Webmin module for configuring fetchmail
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:01 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:03 joerg Exp $
WBM_NAME= file
COMMENT= Webmin module for managing file and directory permissions
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2007/04/21 05:23:01 obache Exp $
# $NetBSD: Makefile,v 1.3 2010/07/11 17:41:04 joerg Exp $
WBM_NAME= htaccess-htpasswd
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES= apache useradmin
COMMENT= Webmin module to protect Apache web-accessible directories
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:01 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:04 joerg Exp $
WBM_NAME= inetd
COMMENT= Webmin module to configure inetd
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2007/04/21 05:23:01 obache Exp $
# $NetBSD: Makefile,v 1.3 2010/07/11 17:41:04 joerg Exp $
WBM_NAME= ipfilter
@ -6,6 +6,8 @@ WBM_DEPEND_MODULES+= net
COMMENT= Webmin module for IPFilter configuration
PKG_DESTDIR_SUPPORT= user-destdir
post-extract:
cp ${FILESDIR}/ipfilter_config-netbsd ${WRKSRC}/${WBM_NAME}/config-netbsd

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2007/04/21 05:23:02 obache Exp $
# $NetBSD: Makefile,v 1.3 2010/07/11 17:41:04 joerg Exp $
WBM_NAME= ldap-useradmin
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES+= useradmin
COMMENT= Webmin module to manage users and groups stored in LDAP
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:02 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:04 joerg Exp $
WBM_NAME= lpadmin
COMMENT= Webmin module to manage local and remote printers
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:02 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:04 joerg Exp $
WBM_NAME= mailboxes
COMMENT= Webmin module to read email in users' mailboxes
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:03 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:04 joerg Exp $
WBM_NAME= mount
COMMENT= Webmin module to mount filesystems
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:03 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:05 joerg Exp $
WBM_NAME= mysql
COMMENT= Webmin module for managing MySQL databases
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:03 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:05 joerg Exp $
WBM_NAME= net
COMMENT= Webmin module for network configuration
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:03 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:05 joerg Exp $
WBM_NAME= openslp
COMMENT= Webmin module to configure an OpenSLP server
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2007/04/21 05:23:03 obache Exp $
# $NetBSD: Makefile,v 1.3 2010/07/11 17:41:05 joerg Exp $
WBM_NAME= passwd
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES+= useradmin
COMMENT= Webmin module to change users' system passwords
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.4 2007/04/21 05:23:04 obache Exp $
# $NetBSD: Makefile,v 1.5 2010/07/11 17:41:05 joerg Exp $
WBM_NAME= postfix
COMMENT= Webmin module for Postfix mail server configuration
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:04 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:05 joerg Exp $
WBM_NAME= postgresql
COMMENT= Webmin module for managing PostgreSQL databases
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:04 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:06 joerg Exp $
WBM_NAME= qmailadmin
COMMENT= Webmin module to configure the qmail mail server
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:04 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:06 joerg Exp $
WBM_NAME= quota
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES+= mount
COMMENT= Webmin module to setup disk quotas
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:05 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:06 joerg Exp $
WBM_NAME= sendmail
COMMENT= Webmin module to manage Sendmail
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:05 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:06 joerg Exp $
WBM_NAME= shell
COMMENT= Webmin module for executing shell commands
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:05 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:06 joerg Exp $
WBM_NAME= sshd
COMMENT= Webmin module to setup the Secure Shell server
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:05 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:06 joerg Exp $
WBM_NAME= status
@ -6,5 +6,7 @@ WBM_DEPEND_MODULES+= mailboxes
COMMENT= Webmin module to view the status of services
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:05 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:06 joerg Exp $
WBM_NAME= syslog
COMMENT= Webmin module to configure the syslog server view log files
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:06 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:07 joerg Exp $
WBM_NAME= telnet
COMMENT= Webmin module to login via telnet or SSH
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.4 2007/04/21 05:23:07 obache Exp $
# $NetBSD: Makefile,v 1.5 2010/07/11 17:41:07 joerg Exp $
WBM_NAME= time
COMMENT= Webmin module to set the system time
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:08 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:07 joerg Exp $
WBM_NAME= tunnel
COMMENT= Webmin module to tunnel to another HTTP server
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.3 2007/04/21 05:23:08 obache Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:07 joerg Exp $
WBM_NAME= useradmin
COMMENT= Webmin module to manage users and groups
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2008/07/10 12:19:23 joerg Exp $
# $NetBSD: Makefile,v 1.4 2010/07/11 17:41:07 joerg Exp $
PKGNAME= wbm-${WBM_NAME}-${WBM_MOD_REV}
PKGREVISION= 2
@ -12,5 +12,7 @@ WBM_DEPEND_MODULES= net quota useradmin sendmail apache mysql
COMMENT= Webmin module to allow users to control their own virtual servers
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../sysutils/webmin/wbm.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: wbm.mk,v 1.8 2007/10/08 08:47:09 obache Exp $
# $NetBSD: wbm.mk,v 1.9 2010/07/11 17:41:01 joerg Exp $
#
# Makefile fragment for Webmin modules
#
@ -57,10 +57,10 @@ WBM_EGDIR= ${PREFIX}/share/examples/webmin
PKG_SYSCONFSUBDIR= webmin
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/${WBM_NAME} \
${ROOT_USER} ${ROOT_GROUP} 0700
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
CONF_FILES_PERMS+= ${WBM_EGDIR}/${WBM_NAME}/config \
${PKG_SYSCONFDIR}/${WBM_NAME}/config \
${ROOT_USER} ${ROOT_GROUP} 0600
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0600
FILES_SUBST+= WBM_NAME=${WBM_NAME:Q}
FILES_SUBST+= WEBMIN_DIR=${WEBMIN_DIR:Q}
FILES_SUBST+= WEBMIN_VARDIR=${WEBMIN_VARDIR:Q}
@ -85,11 +85,13 @@ wbm-build:
${FIND} ${WBMSRC} -name '*.cgi' -print -o -name '*.pl' -print | \
${PERL5} ${WEBMIN_DIR}/perlpath.pl ${PERL5} -
INSTALLATION_DIRS+= ${WBM_DIR} ${WBM_EGDIR}
wbm-install:
${CP} -R ${WBMSRC} ${WBM_DIR}/.
${CP} -R ${WBMSRC} ${DESTDIR}${WBM_DIR}/.
${PERL5} ${WEBMIN_DIR}/copyconfig.pl \
${WEBMIN_OSTYPE_cmd:sh:Q} ${WEBMIN_OSVERSION_cmd:sh:Q} \
${WBM_DIR} ${WBM_EGDIR} ${WBM_NAME}
${DESTDIR}${WBM_DIR} ${DESTDIR}${WBM_EGDIR} ${WBM_NAME}
do-configure: wbm-configure
do-build: wbm-build