misc/131035: [UPDATE] dns/poweradmin to 2.1.2

Edmondas Girkantas eg at fbsd.lt
Tue Jan 27 00:50:04 PST 2009


>Number:         131035
>Category:       misc
>Synopsis:       [UPDATE] dns/poweradmin to 2.1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 27 08:50:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Edmondas Girkantas
>Release:        7.1-RELEASE
>Organization:
>Environment:
FreeBSD big.bug.lt 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009     root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


>Description:
Update to -> 2.1.2
added selection for mysql or pgsql backend
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN poweradmin.orig/Makefile poweradmin/Makefile
--- poweradmin.orig/Makefile	2007-03-24 16:04:34.000000000 +0200
+++ poweradmin/Makefile	2009-01-27 09:34:06.000000000 +0200
@@ -1,33 +1,45 @@
 # New ports collection makefile for:   poweradmin
-# Date created:        19 January 2005
-# Whom:                geo
+# Date created:        27 January 2009
+# Whom:                Edmondas Girkantas <eg at fbsd.lt>
 #
-# $FreeBSD: ports/dns/poweradmin/Makefile,v 1.3 2007/03/24 14:04:34 pav Exp $
+# $FreeBSD$
 #
 
-PORTNAME=		poweradmin
-PORTVERSION=	1.2.7
-CATEGORIES=		dns www
-MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=		poweradmin
+PORTNAME=	poweradmin
+PORTVERSION=	2.1.2
+CATEGORIES=	dns www
+MASTER_SITES=	https://www.poweradmin.org/download/
+EXTRACT_SUFX=	.tgz
 
-MAINTAINER=		grivat at sicfa.net
-COMMENT=		A set of PHP-scripts to manage PowerDNS over the web
+MAINTAINER=	eg at fbsd.lt
+COMMENT=	A set of PHP-scripts to manage PowerDNS over the web
 
-RUN_DEPENDS=	${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
-
-USE_PHP=	mysql
+USE_PHP=	gettext
 WANT_PHP_WEB=	yes
 NO_BUILD=	yes
+
+OPTIONS=	POSTGRESQL "Use PostgreSQL database instead of MySQL" off
+
 SUB_FILES=	pkg-message
 
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_POSTGRESQL)
+USE_PHP+=	pgsql
+RUN_DEPENDS+=	${PEARDIR}/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql
+.else
+USE_PHP+=	mysql
+RUN_DEPENDS+=	${PEARDIR}/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql
+.endif
+
+post-extract:
+	@cd ${WRKSRC} && ${RM} -rf "install"
+
 do-install:
-	${MKDIR} ${WWWDIR}
-	cd ${WRKSRC}; ${FIND} . \
-		| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-	${MV} ${WWWDIR}/inc/config-block.inc.php  ${WWWDIR}/inc/config.inc.php.sample
+	@${CP} -r ${WRKSRC} ${PREFIX}/www/${PORTNAME}
+	${CP} ${WWWDIR}/inc/config-me.inc.php  ${WWWDIR}/inc/config.inc.php
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN poweradmin.orig/distinfo poweradmin/distinfo
--- poweradmin.orig/distinfo	2006-01-22 10:31:44.000000000 +0200
+++ poweradmin/distinfo	2009-01-27 09:34:06.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (poweradmin-1.2.7.tar.gz) = 0e639b7a245b7ccda0af4b50221d2cea
-SHA256 (poweradmin-1.2.7.tar.gz) = a7869b187155a5b07d3ca656a52e17eca300b6fa607aaadd74617e7a4b14adfd
-SIZE (poweradmin-1.2.7.tar.gz) = 61531
+MD5 (poweradmin-2.1.2.tgz) = cf83b89c6931160684de52a0b3ea3678
+SHA256 (poweradmin-2.1.2.tgz) = 2e90c05247d416fce704016126abce37f10a6817723008b220ac9c003d194cb8
+SIZE (poweradmin-2.1.2.tgz) = 94314
diff -ruN poweradmin.orig/files/pkg-message.in poweradmin/files/pkg-message.in
--- poweradmin.orig/files/pkg-message.in	2009-01-27 05:24:31.000000000 +0200
+++ poweradmin/files/pkg-message.in	2009-01-27 09:34:06.000000000 +0200
@@ -1,5 +1,5 @@
 *******************************************************************************
-A sample config file is located in %%WWWDIR%%/inc/config.inc.php.sample
+A sample config file is located in %%WWWDIR%%/inc/config.inc.php
 You now need to add an alias to apache's httpd.conf pointing to
 %%WWWDIR%% in order to access PowerAdmin from your web brower,
 or create a VirtualHost with DocumentRoot set to that directory.
diff -ruN poweradmin.orig/files/pkg-message.in.orig poweradmin/files/pkg-message.in.orig
--- poweradmin.orig/files/pkg-message.in.orig	1970-01-01 03:00:00.000000000 +0300
+++ poweradmin/files/pkg-message.in.orig	2009-01-27 05:24:31.000000000 +0200
@@ -0,0 +1,9 @@
+*******************************************************************************
+A sample config file is located in %%WWWDIR%%/inc/config.inc.php.sample
+You now need to add an alias to apache's httpd.conf pointing to
+%%WWWDIR%% in order to access PowerAdmin from your web brower,
+or create a VirtualHost with DocumentRoot set to that directory.
+	Alias /poweradmin/	%%WWWDIR%%/
+		or
+	DocumentRoot		%%WWWDIR%%/
+*******************************************************************************
diff -ruN poweradmin.orig/pkg-descr poweradmin/pkg-descr
--- poweradmin.orig/pkg-descr	2009-01-27 05:24:31.000000000 +0200
+++ poweradmin/pkg-descr	2009-01-27 09:34:06.000000000 +0200
@@ -2,5 +2,5 @@
 
 WWW: http://www.poweradmin.org/
 
-- Geoffroy RIVAT
-grivat at sicfa.net
+- Edmondas Girkantas
+eg at fbsd.lt
diff -ruN poweradmin.orig/pkg-plist poweradmin/pkg-plist
--- poweradmin.orig/pkg-plist	2005-01-20 18:49:51.000000000 +0200
+++ poweradmin/pkg-plist	2009-01-27 09:34:06.000000000 +0200
@@ -1,38 +1,59 @@
+www/poweradmin/add_perm_templ.php
 www/poweradmin/add_record.php
+www/poweradmin/add_supermaster.php
+www/poweradmin/add_user.php
+www/poweradmin/add_zone_master.php
+www/poweradmin/add_zone_slave.php
+www/poweradmin/change_password.php
 www/poweradmin/delete_domain.php
+www/poweradmin/delete_perm_templ.php
 www/poweradmin/delete_record.php
+www/poweradmin/delete_supermaster.php
 www/poweradmin/delete_user.php
-www/poweradmin/docs/ChangeLog
+www/poweradmin/docs/CHANGELOG
+www/poweradmin/docs/LICENSE
 www/poweradmin/docs/README
-www/poweradmin/docs/README-Sequence
-www/poweradmin/docs/REDHAT-README
-www/poweradmin/docs/TODO
+www/poweradmin/docs/i18n-template-db.pot
+www/poweradmin/docs/i18n-template-php.pot
+www/poweradmin/docs/poweradmin-mysql-db-structure.sql
+www/poweradmin/docs/poweradmin-pgsql-db-structure.sql
 www/poweradmin/edit.php
+www/poweradmin/edit_perm_templ.php
 www/poweradmin/edit_record.php
 www/poweradmin/edit_user.php
+www/poweradmin/images/arrow.png
 www/poweradmin/images/background.jpg
 www/poweradmin/images/delete.gif
 www/poweradmin/images/edit.gif
 www/poweradmin/inc/auth.inc.php
-www/poweradmin/inc/config.inc.php.sample
-www/poweradmin/inc/dal.inc.php
+www/poweradmin/inc/config.inc.php
+www/poweradmin/inc/config-me.inc.php
 www/poweradmin/inc/database.inc.php
 www/poweradmin/inc/dns.inc.php
 www/poweradmin/inc/error.inc.php
 www/poweradmin/inc/footer.inc.php
 www/poweradmin/inc/header.inc.php
+www/poweradmin/inc/i18n.inc.php
 www/poweradmin/inc/record.inc.php
 www/poweradmin/inc/toolkit.inc.php
 www/poweradmin/inc/users.inc.php
 www/poweradmin/index.php
-www/poweradmin/install.php
-www/poweradmin/migrator.php-pa
+www/poweradmin/list_perm_templ.php
+www/poweradmin/list_supermasters.php
+www/poweradmin/list_zones.php
+www/poweradmin/locale/en_EN/LC_MESSAGES/en.po
+www/poweradmin/locale/nl_NL/LC_MESSAGES/messages.mo
+www/poweradmin/locale/nl_NL/LC_MESSAGES/nl.po
+www/poweradmin/robots.txt
 www/poweradmin/search.php
-www/poweradmin/seq_update.php
-www/poweradmin/style/style.css.php
-www/poweradmin/test_setup.php
+www/poweradmin/style/example.inc.php
 www/poweradmin/users.php
 @dirrm www/poweradmin/style
+ at dirrm www/poweradmin/locale/nl_NL/LC_MESSAGES
+ at dirrm www/poweradmin/locale/nl_NL
+ at dirrm www/poweradmin/locale/en_EN/LC_MESSAGES
+ at dirrm www/poweradmin/locale/en_EN
+ at dirrm www/poweradmin/locale
 @dirrm www/poweradmin/inc
 @dirrm www/poweradmin/images
 @dirrm www/poweradmin/docs


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list