2006-03-14 17:00:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2006/03/14 16:00:42 jlam Exp $
|
2004-07-23 21:28:32 +02:00
|
|
|
|
Update sysutils/webmin to webmin-1.170. Changes from version 1.150
include:
* Added the new Bandwidth Monitoring module, for generating simple
reports of network traffic by port, time and host on Linux systems.
* Added the Cluster Copy module, for copying files to multiple servers
either on schedule or manually.
* Added the Backup Configuration Files module, for backing up and
restoring config files known to Webmin.
* Several improvements to the Linux firewall module, including pre-
and post commands, cluster support and the ability to reset the
firewall configuration.
* Support for selecting specific MySQL and PostgreSQL tables to back
up, and improved searching in the MySQL module.
* Automatic email notification for users approaching their disk quotas.
* The timezone can now be set in the System Time module on Linux,
Solaris and FreeBSD.
* Added the new Sarg Squid access reporting module. Thanks to Omar
Armas for sponsoring its development.
* Added support for NFSv4 to the Disk and Network Filesystems module.
* In the MySQL and PostgreSQL modules, all databases can now be backed
up at once, either manually or on a configured schedule.
* Added the ability to delete multiple users at once to the Users and
Groups module.
* Added support for MD5 encryption for Webmin passwords, to avoid the
8-character effective password length limit.
* The BIND module can now create and edit delegation-only zones.
* When PAM is used for Unix authentication, expired passwords are now
detected and the user is prompted to select a new password (if this
feature is enabled on the Webmin Configuration module).
2005-01-23 05:36:27 +01:00
|
|
|
DISTNAME= webmin-1.170-minimal
|
2004-07-23 21:28:32 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-minimal$//}
|
2005-12-03 17:13:34 +01:00
|
|
|
PKGREVISION= 2
|
2004-07-23 21:28:32 +02:00
|
|
|
CATEGORIES= sysutils www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webadmin/}
|
|
|
|
|
2006-03-14 17:00:40 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-07-23 21:28:32 +02:00
|
|
|
HOMEPAGE= http://www.webmin.com/
|
|
|
|
COMMENT= Perl web server and CGI for Unix system administration
|
|
|
|
|
|
|
|
DEPENDS+= p5-Net-SSLeay-[0-9]*:../../security/p5-Net-SSLeay
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
2005-01-23 07:20:43 +01:00
|
|
|
USE_LANGUAGES= # empty
|
2004-07-23 21:28:32 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2006-02-03 02:58:43 +01:00
|
|
|
REPLACE_PERL+= *.cgi */*.cgi *.pl */*.pl
|
2004-07-23 21:28:32 +02:00
|
|
|
|
|
|
|
WEBMIN_DIR= ${PREFIX}/${WEBMIN_SUBDIR}
|
|
|
|
WEBMIN_SUBDIR= share/webmin
|
|
|
|
WEBMIN_ETCDIR?= ${PKG_SYSCONFDIR}/webmin
|
|
|
|
WEBMIN_LOGDIR?= ${VARBASE}/log/webmin
|
2005-12-03 17:13:34 +01:00
|
|
|
FILES_SUBST+= WEBMIN_DIR=${WEBMIN_DIR:Q}
|
|
|
|
FILES_SUBST+= WEBMIN_ETCDIR=${WEBMIN_ETCDIR:Q}
|
|
|
|
FILES_SUBST+= WEBMIN_LOGDIR=${WEBMIN_LOGDIR:Q}
|
2006-02-03 02:58:43 +01:00
|
|
|
MESSAGE_SUBST+= WEBMIN_DIR=${WEBMIN_DIR:Q}
|
2004-07-23 21:28:32 +02:00
|
|
|
|
|
|
|
RCD_SCRIPTS= webmin
|
2004-07-23 21:47:21 +02:00
|
|
|
OWN_DIRS= ${WEBMIN_LOGDIR}
|
2004-07-23 21:28:32 +02:00
|
|
|
|
2004-07-23 21:47:21 +02:00
|
|
|
# Dynamically generate the Webmin PLIST from the installed files.
|
2006-02-03 02:58:43 +01:00
|
|
|
WEBMIN_PLIST_FILES_CMD= \
|
2004-07-23 21:47:21 +02:00
|
|
|
( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} \! -type d -print ) \
|
|
|
|
| ${SORT} -u
|
2006-02-03 02:58:43 +01:00
|
|
|
WEBMIN_PLIST_DIRS_CMD= \
|
2004-07-23 21:47:21 +02:00
|
|
|
( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} -type d -print ) \
|
|
|
|
| ${SED} -e "s,^,@unexec ${RMDIR} -p %D/," \
|
2006-02-03 02:58:43 +01:00
|
|
|
-e "s,\$$, 2>/dev/null || ${TRUE}," \
|
2004-07-23 21:47:21 +02:00
|
|
|
| ${SORT} -ur
|
2006-02-03 02:58:43 +01:00
|
|
|
GENERATE_PLIST+= ${WEBMIN_PLIST_FILES_CMD}; ${WEBMIN_PLIST_DIRS_CMD};
|
2004-07-23 21:28:32 +02:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
for file in ${WRKSRC}/setup.sh; do \
|
|
|
|
${SED} -e "s|/etc/webmin|${WEBMIN_ETCDIR}|g" \
|
|
|
|
-e "s|/var/webmin|${WEBMIN_LOGDIR}|g" \
|
|
|
|
-e "s|/usr/bin/perl|${PERL5}|g" \
|
|
|
|
-e "/chown.*root/s|root|${ROOT_USER}|g" \
|
|
|
|
-e "/chgrp.*bin/s|bin|${ROOT_GROUP}|g" \
|
|
|
|
$$file > $$file.new; \
|
|
|
|
if [ -x $$file ]; then \
|
|
|
|
${CHMOD} +x $$file.new; \
|
|
|
|
fi; \
|
|
|
|
${MV} -f $$file.new $$file; \
|
|
|
|
done
|
2005-01-23 07:20:43 +01:00
|
|
|
case "${USE_BUILTIN.openssl}" in \
|
|
|
|
[nN][oO]) \
|
|
|
|
for file in ${WRKSRC}/acl/config ${WRKSRC}/acl/config-*; do \
|
|
|
|
${SED} -e "s|^ssleay=.*|ssleay=${SSLBASE}/bin/openssl|" \
|
|
|
|
$$file > $$file.new; \
|
|
|
|
${MV} -f $$file.new $$file; \
|
|
|
|
done; \
|
|
|
|
;; \
|
|
|
|
esac
|
2004-07-23 21:28:32 +02:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${WEBMIN_DIR}
|
|
|
|
${CP} -R ${WRKSRC}/* ${WEBMIN_DIR}
|
|
|
|
|
2005-01-23 07:20:43 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2004-07-23 21:28:32 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|