ports/102971: [Maintiner-update]: sysutils/flexbackup PREFIX fix and OPTIONization

Marcus von Appen mva at sysfault.org
Thu Sep 7 08:50:14 UTC 2006


>Number:         102971
>Category:       ports
>Synopsis:       [Maintiner-update]: sysutils/flexbackup PREFIX fix and OPTIONization
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 07 08:50:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Marcus von Appen
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD medusa.sysfault.org 6.1-STABLE FreeBSD 6.1-STABLE #12: Tue Aug 29 19:10:11 CEST 2006 root at medusa.sysfault.org:/usr/obj/usr/src/sys/MEDUSA i386


	
>Description:
        The following patch fixes the ugly PREFIX misbehaviour of
        flexbackup.
        By default it expects its configuration file, flexbackup.conf,
        in /etc/ as longas WITH_PREFIX_CONF is not explicitly set.
        
        I changed it to use PREFIX as default now, so flexbackup expects
        flexbackup.conf being in PREFIX/etc

        Before:
        /etc/flexbackup.conf        for PREFIX=whatever, WITH_PREFIX_CONF unset
        Now:
        PREFIX/etc/flexbackup.conf  for PREFIX=whatever

        The changed behaviour should be noted in UPDATING, I guess.

        The port make use of OPTIONS and got a revision bump for the
        PREFIX change.

        I'll take over maintainership for this.

>How-To-Repeat:
	
>Fix:

diff -Nur flexbackup/Makefile flexbackup.new/Makefile
--- flexbackup/Makefile	Tue Sep  5 06:57:08 2006
+++ flexbackup.new/Makefile	Thu Sep  7 10:33:32 2006
@@ -7,23 +7,28 @@
 
 PORTNAME=	flexbackup
 PORTVERSION=	1.2.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.edwinh.org/flexbackup/tarball/ \
 		http://www.reynoldsnet.org/flexbackup/tarball/
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	mva at sysfault.org
 COMMENT=	Perl-based flexible backup system that can use dump/afio/cpio/tar/star
 
 PKGMESSAGE=	${WRKDIR}/pkg-message
-
 MAKE_ARGS=	PERLPATH=${PERL}
-
 USE_PERL5=	yes
 
-.if defined(WITH_PREFIX_CONF)
 MAKE_ARGS+=	CONFFILE=${PREFIX}/etc/flexbackup.conf
 CONFDIR=	${PREFIX}
-.endif
+
+.include <bsd.port.pre.mk>
+
+OPTIONS=	AFIO	"Enable afio support" Off \
+		BUFFER	"Enable buffer support" Off \
+		GTAR	"Enable gtar support" Off \
+		STAR	"Enable star support" Off \
+		ZIP	"Eanble zip support" Off
 
 .if defined(WITH_AFIO)
 RUN_DEPENDS+=	afio:${PORTSDIR}/sysutils/afio
@@ -46,22 +51,12 @@
 .endif
 
 pre-fetch:
-	@${ECHO} "----------------------------------------------------------"
-	@${ECHO} "This port can utilize afio, star, zip, and buffer."
-	@${ECHO} "You may use the following build options to make:"
-	@${ECHO}
-	@${ECHO} "  WITH_AFIO=yes   enable the use of afio"
-	@${ECHO} "  WITH_STAR=yes   enable the use of star"
-	@${ECHO} "  WITH_ZIP=yes    enable the use of zip"
-	@${ECHO} "  WITH_BUFFER=yes enable the use of buffer"
-	@${ECHO}
-	@${ECHO} "----------------------------------------------------------"
-	@${ECHO}
+	@${ECHO} "------------------------------------------------------------------------"
 	@${ECHO} "If you are using and older version of FreeBSD that does not have GNU Tar"
 	@${ECHO} "imported as the system 'tar,' configure this port using WITH_GTAR=yes"
 	@${ECHO} "to enable the port dependency and use the 'path' variable in the"
 	@${ECHO} "flexbackup.conf file to point to 'gtar'"
-	@${ECHO}
+	@${ECHO} "------------------------------------------------------------------------"
 
 MAN1=		flexbackup.1
 MAN5=		flexbackup.conf.5
@@ -84,4 +79,4 @@
 .endif
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list