diff options
author | Rene Ladan <rene@FreeBSD.org> | 2016-02-11 16:22:41 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2016-02-11 16:22:41 +0000 |
commit | 09c4e126aa910061618e60b196c19e50219efc6c (patch) | |
tree | 092a4b15eb17d9d9b039a70b65f6292df470b40e /archivers/star | |
parent | e0aa066aead36b2b70baf9aa06050f69383dfd56 (diff) | |
download | ports-09c4e126aa910061618e60b196c19e50219efc6c.tar.gz ports-09c4e126aa910061618e60b196c19e50219efc6c.zip |
archivers/star: revive port
- update MASTER_SITES
- modernize (staging, USES, manual pages, @sample)
- add license information (CDDL + GPLv2)
- regenerate patches (no content changes)
- pass maintainer to submitter
While here:
- add USE_GCC=any to allow build on FreeBSD 10+
PR: 188974
Submitted by: Chris Hutchinson (portmaster@BSDforge.com)
Notes
Notes:
svn path=/head/; revision=408689
Diffstat (limited to 'archivers/star')
-rw-r--r-- | archivers/star/Makefile | 67 | ||||
-rw-r--r-- | archivers/star/distinfo | 2 | ||||
-rw-r--r-- | archivers/star/files/patch-rmt_Makefile | 21 | ||||
-rw-r--r-- | archivers/star/files/patch-rmt_Makefile.man | 18 | ||||
-rw-r--r-- | archivers/star/files/patch-star_Makefile | 22 | ||||
-rw-r--r-- | archivers/star/files/patch-star_star.1 | 17 | ||||
-rw-r--r-- | archivers/star/pkg-descr | 19 | ||||
-rw-r--r-- | archivers/star/pkg-plist | 16 |
8 files changed, 182 insertions, 0 deletions
diff --git a/archivers/star/Makefile b/archivers/star/Makefile new file mode 100644 index 000000000000..ecb606838c64 --- /dev/null +++ b/archivers/star/Makefile @@ -0,0 +1,67 @@ +# Created by: Andreas Klemm <andreas@klemm.gtn.com> +# $FreeBSD$ + +PORTNAME= star +DISTVERSION= 1.5.2 +CATEGORIES= archivers +MASTER_SITES= http://BSDforge.com/projects/source/srchivers/star/ + +MAINTAINER= portmaster@BSDforge.com +COMMENT= Unique standard tape archiver with many enhancements + +LICENSE= CDDL GPLv2 +LICENSE_COMB= multi +LICENSE_FILES= ${WRKSRC}/CDDL.Schily.txt + +BUILD_DEPENDS= smake:${PORTSDIR}/devel/smake + +USES= gettext iconv tar:bzip2 +USE_GCC= any + +.if defined(NO_INSTALL_MANPAGES) +XMKFLAGS= XMK_FILE="" +.endif + +MAKEFLAGS+= DEFMANBASE=. +MAKE_ENV+= MAKEFLAGS=${MAKEFLAGS} + +PORTDOCS= README README.crash README.mtio README.pattern STARvsGNUTAR \ + README.ACL README.largefiles README.otherbugs \ + README.posix-2001 + +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + +post-patch: + @${FIND} ${WRKSRC} -type f -print \ + | ${XARGS} ${REINPLACE_CMD} -e "s@/etc/default@${PREFIX}/etc@g" + @${MV} ${WRKSRC}/rmt/rmt.1 ${WRKSRC}/rmt/srmt.1 + +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} smake + cd ${WRKSRC}/star && ${SETENV} ${MAKE_ENV} smake -f Makefile.doc + +do-install: + cd ${WRKSRC}/star && ${SETENV} ${MAKE_ENV} smake \ + ${INSTALL_TARGET} INS_BASE=${STAGEDIR}${PREFIX} ${XMKFLAGS} + cd ${WRKSRC}/rmt && ${SETENV} ${MAKE_ENV} smake \ + ${INSTALL_TARGET} INS_BASE=${STAGEDIR}${PREFIX} ${XMKFLAGS} + cd ${WRKSRC}/tartest && ${SETENV} ${MAKE_ENV} smake \ + ${INSTALL_TARGET} INS_BASE=${STAGEDIR}${PREFIX} ${XMKFLAGS} +# Ugh... cmake doesn't like install-strip + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/star + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/srmt + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tartest + ${INSTALL_DATA} ${WRKSRC}/star/star.dfl ${STAGEDIR}${PREFIX}/etc/star.sample + ${INSTALL_DATA} ${WRKSRC}/rmt/rmt.dfl ${STAGEDIR}${PREFIX}/etc/rmt.sample + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for FILE in ${PORTDOCS} + (cd ${WRKSRC}/star && ${INSTALL_DATA} ${FILE} ${STAGEDIR}${DOCSDIR}/${FILE}) +.endfor +.endif + +.include <bsd.port.mk> diff --git a/archivers/star/distinfo b/archivers/star/distinfo new file mode 100644 index 000000000000..2eac926dcbb5 --- /dev/null +++ b/archivers/star/distinfo @@ -0,0 +1,2 @@ +SHA256 (star-1.5.2.tar.bz2) = 762645b98af13bb9b0512812814ec8e90635d1400c94eb5911e9774daed2addf +SIZE (star-1.5.2.tar.bz2) = 874558 diff --git a/archivers/star/files/patch-rmt_Makefile b/archivers/star/files/patch-rmt_Makefile new file mode 100644 index 000000000000..79b88cadf47e --- /dev/null +++ b/archivers/star/files/patch-rmt_Makefile @@ -0,0 +1,21 @@ + +$FreeBSD$ + +--- rmt/Makefile.orig 2016-02-10 20:47:23 UTC ++++ rmt/Makefile +@@ -6,13 +6,13 @@ include $(SRCROOT)/$(RULESDIR)/rules.to + ########################################################################### + + INSDIR= sbin +-TARGET= rmt ++TARGET= srmt + CPPOPTS += -DUSE_REMOTE + CPPOPTS += -DUSE_LARGEFILES + CFILES= rmt.c + #HFILES= + LIBS= -ldeflt -lschily $(LIB_SOCKET) +-XMK_FILE= Makefile.man Makefile.dfl Makefile.doc ++XMK_FILE= Makefile.man + + ########################################################################### + include $(SRCROOT)/$(RULESDIR)/rules.cmd diff --git a/archivers/star/files/patch-rmt_Makefile.man b/archivers/star/files/patch-rmt_Makefile.man new file mode 100644 index 000000000000..d98338156aaa --- /dev/null +++ b/archivers/star/files/patch-rmt_Makefile.man @@ -0,0 +1,18 @@ + +$FreeBSD$ + +--- rmt/Makefile.man.orig 2016-02-10 20:47:23 UTC ++++ rmt/Makefile.man +@@ -8,10 +8,10 @@ include $(SRCROOT)/$(RULESDIR)/rules.to + ########################################################################### + + MANDIR= man +-TARGETMAN= rmt ++TARGETMAN= srmt + MANSECT= $(MANSECT_CMD) + MANSUFFIX= $(MANSUFF_CMD) +-MANFILE= rmt.1 ++MANFILE= srmt.1 + + ########################################################################### + include $(SRCROOT)/$(RULESDIR)/rules.man diff --git a/archivers/star/files/patch-star_Makefile b/archivers/star/files/patch-star_Makefile new file mode 100644 index 000000000000..42e4205fd3b1 --- /dev/null +++ b/archivers/star/files/patch-star_Makefile @@ -0,0 +1,22 @@ +--- star/Makefile.orig 2016-02-10 20:47:23 UTC ++++ star/Makefile +@@ -15,7 +15,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.to + INSDIR= bin + TARGET= star + #SYMLINKS= ustar tar +-SYMLINKS= ustar tar gnutar suntar scpio spax ++SYMLINKS= ustar suntar scpio spax + CPPOPTS += -D__STAR__ + CPPOPTS += -DSET_CTIME -DFIFO -DUSE_MMAP -DUSE_REMOTE -DUSE_RCMD_RSH + #CPPOPTS += -DSET_CTIME -DFIFO -DUSE_MMAP +@@ -52,8 +52,8 @@ LIBS= -ldeflt -lrmt -lfind -lschily $(L + # + # Wenn -lfind, dann auch $(LIB_INTL) + # +-XMK_FILE= Makefile.man ustarman.mk starformatman.mk scpioman.mk gnutarman.mk \ +- spaxman.mk suntarman.mk Makefile.dfl Makefile.doc ++XMK_FILE= Makefile.man starformatman.mk scpioman.mk \ ++ spaxman.mk suntarman.mk + + star_fat.c: star.c + $(RM) $(RM_FORCE) $@; cp star.c $@ diff --git a/archivers/star/files/patch-star_star.1 b/archivers/star/files/patch-star_star.1 new file mode 100644 index 000000000000..5c459c9297c0 --- /dev/null +++ b/archivers/star/files/patch-star_star.1 @@ -0,0 +1,17 @@ +--- star/star.1.orig 2016-02-10 20:47:23 UTC ++++ star/star.1 +@@ -32,14 +32,6 @@ star \- unique standard tape archiver + .I file1 .\|.\|. filen + [\fIfind_expr\fP] + .br +-.ie n .B "tar\ \ " +-.el .B "tar\ \ \ " +-.I command +-[\fIoptions\fP] +-.ie n .B "\ \ \ \ \ \ \ " +-.el .B "\ \ \ \ \ \ \ \ \ " +-.I file1 .\|.\|. filen +-.br + .B "star\ " + .ie n .B "\-copy\ \ " + .el .B "\-copy\ \ \ \ " diff --git a/archivers/star/pkg-descr b/archivers/star/pkg-descr new file mode 100644 index 000000000000..c8dfaa1ab994 --- /dev/null +++ b/archivers/star/pkg-descr @@ -0,0 +1,19 @@ +Star is the fastest known implementation of a tar archiver. + +Main advantages over other tar implementations: + fifo - Keeps the tape streaming. + pattern matcher - For a convenient user interface. + sophisticated diff - User tailorable interface for comparing tar + archives against file trees. + no namelen limitation - Pathnames up to 1024 Bytes may be archived. + deals with all 3 times - Stores/restores all 3 times of a file. + does not clobber files - More recent copies on disk will not be + clobbered from tape. + automatic byte swap - star automatically detects swapped archives. + automatic format detect - Automatically detects archive formats: + old tar, gnu tar, ansi tar, star. + fully ansi compatible - star is fully ANSI/Posix 1003.1 compatible. + +Please mail bugs and suggestions to: +Author: Joerg Schilling <js@cs.tu-berlin.de> +WWW: http://cdrecord.berlios.de/old/private/star.html diff --git a/archivers/star/pkg-plist b/archivers/star/pkg-plist new file mode 100644 index 000000000000..69c0131f5deb --- /dev/null +++ b/archivers/star/pkg-plist @@ -0,0 +1,16 @@ +bin/scpio +bin/spax +bin/star +bin/suntar +bin/tartest +bin/ustar +@sample etc/rmt.sample +@sample etc/star.sample +man/man1/scpio.1.gz +man/man1/spax.1.gz +man/man1/srmt.1.gz +man/man1/star.1.gz +man/man1/suntar.1.gz +man/man1/tartest.1.gz +man/man5/star.5.gz +sbin/srmt |