diff options
author | leeym <leeym@FreeBSD.org> | 2005-09-10 05:38:23 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2005-09-10 05:38:23 +0800 |
commit | 1eddbfbd4b79907f98cc2965fec2e587a408e5e9 (patch) | |
tree | c3ab0a0aee6344df4728e89baf76bf0795bb398c /misc/afbackup | |
parent | b091d8fa9861678ce652d9304e7338688d831aa5 (diff) | |
download | freebsd-ports-gnome-1eddbfbd4b79907f98cc2965fec2e587a408e5e9.tar.gz freebsd-ports-gnome-1eddbfbd4b79907f98cc2965fec2e587a408e5e9.tar.zst freebsd-ports-gnome-1eddbfbd4b79907f98cc2965fec2e587a408e5e9.zip |
- remove the file left after deinstalling, and unbreak this port
PR: 85903
Submitted by: leeym
Diffstat (limited to 'misc/afbackup')
-rw-r--r-- | misc/afbackup/Makefile | 15 | ||||
-rw-r--r-- | misc/afbackup/files/pkg-plist.autokey | 1 | ||||
-rw-r--r-- | misc/afbackup/files/pkg-plist.fixedorder | 1 |
3 files changed, 12 insertions, 5 deletions
diff --git a/misc/afbackup/Makefile b/misc/afbackup/Makefile index ec7141aa6c15..c76de78c2733 100644 --- a/misc/afbackup/Makefile +++ b/misc/afbackup/Makefile @@ -10,8 +10,7 @@ PORTVERSION= 3.3.5 PORTREVISION= 3 CATEGORIES?= misc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= afbackup -DISTNAME= ${PORTNAME}-3.3.5 +MASTER_SITE_SUBDIR= ${PORTNAME} # XXX Remember to remove the comment if the actual variable is needed by someone. #SLAVEDIRS=misc/afbackup-client misc/afbackup-server @@ -21,7 +20,12 @@ COMMENT= AF's backup system WRKSRC= ${WRKDIR}/afbackup-3.3.5 PLIST= ${WRKSRC}/pkg-plist +.if !defined(WITHOUT_NLS) USE_GETTEXT= yes +.else +CONFIGURE_ARGS+= --disable-nls +.endif + .if ! defined(NO_DES) USE_OPENSSL= yes CONFIG_WITH_DES= --with-des --with-des-header=openssl/des.h \ @@ -157,8 +161,9 @@ pre-configure: @${CP} ${WRKSRC}/changer.conf.chio ${WRKSRC}/changer.conf .if !defined(NO_AUTOKEY) && !defined(NO_DES) +PLIST_SRC+= pkg-plist.autokey pre-build: - @perl -le 'print( ( "a".."z", "A".."Z", "0".."9")[ map { rand( 62)} 0..( rand( 10)+10)])' >${WRKSRC}/cryptkey + @${PERL} -le 'print( ( "a".."z", "A".."Z", "0".."9")[ map { rand( 62)} 0..( rand( 10)+10)])' >${WRKSRC}/cryptkey .endif pre-install: @@ -168,7 +173,7 @@ pre-install: @for docfile in $(AFBACKUP_DOCS:S/^/share\/doc\/${PORTNAME}\//); do ${ECHO_CMD} $$docfile >>${PLIST}; done .endif @for plistfile in ${PLIST_SRC}; do ${CAT} ${FILESDIR}/$$plistfile >>${PLIST}; done - @${CAT} ${PLIST} | perl -nle 'print unless $$lines{$$_}++' >${PLIST}.tmp + @${CAT} ${PLIST} | ${PERL} -nle 'print unless $$lines{$$_}++' >${PLIST}.tmp @${CAT} ${PLIST}.tmp ${FILESDIR}/pkg-plist.fixedorder >${PLIST} .if !defined(NOPORTDOCS) @${ECHO_CMD} @cwd ${PREFIX} >>${PLIST} @@ -177,7 +182,7 @@ pre-install: @${SETENV} ${PKGINSTALL_ENV} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: -.if !defined(NO_AUTOKEY) +.if !defined(NO_AUTOKEY) && !defined(NO_DES) ${INSTALL} ${COPY} -o afbackup -g operator -m 0400 ${WRKSRC}/cryptkey ${PREFIX}/etc/afbackup .endif .if !defined(NOPORTDOCS) diff --git a/misc/afbackup/files/pkg-plist.autokey b/misc/afbackup/files/pkg-plist.autokey new file mode 100644 index 000000000000..5584daf6335c --- /dev/null +++ b/misc/afbackup/files/pkg-plist.autokey @@ -0,0 +1 @@ +etc/afbackup/cryptkey diff --git a/misc/afbackup/files/pkg-plist.fixedorder b/misc/afbackup/files/pkg-plist.fixedorder index b43cdf021776..ea8acd32a5c3 100644 --- a/misc/afbackup/files/pkg-plist.fixedorder +++ b/misc/afbackup/files/pkg-plist.fixedorder @@ -6,3 +6,4 @@ @dirrm share/afbackup/locale/de @dirrm share/afbackup/locale @dirrm share/afbackup +@dirrm etc/afbackup |