summaryrefslogtreecommitdiff
path: root/archivers/gsharutils
diff options
context:
space:
mode:
authortv <tv>1999-05-23 20:22:19 +0000
committertv <tv>1999-05-23 20:22:19 +0000
commit97b6fca886a700721ae399098b138fd9d36d0423 (patch)
treef116a247fe225f6b411d65f14a76e49545026b00 /archivers/gsharutils
parent83c57ace830661a98bf19d85ad8e841f8c27c454 (diff)
downloadpkgsrc-97b6fca886a700721ae399098b138fd9d36d0423.tar.gz
Import FreeBSD "archivers/gshar+gunshar" as archivers/gsharutils.
Diffstat (limited to 'archivers/gsharutils')
-rw-r--r--archivers/gsharutils/Makefile35
-rw-r--r--archivers/gsharutils/files/md51
-rw-r--r--archivers/gsharutils/patches/patch-aa90
-rw-r--r--archivers/gsharutils/patches/patch-ac11
-rw-r--r--archivers/gsharutils/pkg/COMMENT1
-rw-r--r--archivers/gsharutils/pkg/DESCR8
-rw-r--r--archivers/gsharutils/pkg/PLIST24
7 files changed, 170 insertions, 0 deletions
diff --git a/archivers/gsharutils/Makefile b/archivers/gsharutils/Makefile
new file mode 100644
index 00000000000..293af57e690
--- /dev/null
+++ b/archivers/gsharutils/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: gshar+gunshar
+# Version required: 4.2
+# Date created: 28 Dec 1994
+# Whom: ache
+#
+# FreeBSD Id: Makefile,v 1.13 1999/01/27 07:41:03 fenner Exp
+#
+
+DISTNAME= sharutils-4.2
+CATEGORIES= archivers
+MASTER_SITES= ${MASTER_SITE_GNU}
+MASTER_SITE_SUBDIR= sharutils
+
+MAINTAINER= ports@FreeBSD.org
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --program-prefix=g --disable-uucode
+INSTALL_TARGET= install install-man
+MAN1= gshar.1 gunshar.1
+
+post-patch:
+ @touch ${WRKSRC}/po/sharutils.pot
+
+post-install:
+.for file in gshar gunshar
+ strip ${PREFIX}/bin/${file}
+.endfor
+ if [ ! -f ${PREFIX}/info/dir ]; then \
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
+ fi
+.for info in remsync.info sharutils.info
+ install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir
+.endfor
+
+.include <bsd.port.mk>
diff --git a/archivers/gsharutils/files/md5 b/archivers/gsharutils/files/md5
new file mode 100644
index 00000000000..eacc64495d1
--- /dev/null
+++ b/archivers/gsharutils/files/md5
@@ -0,0 +1 @@
+MD5 (sharutils-4.2.tar.gz) = b1ab1d10d88e8dcb8ee5b0d06b2fc073
diff --git a/archivers/gsharutils/patches/patch-aa b/archivers/gsharutils/patches/patch-aa
new file mode 100644
index 00000000000..079f71e29f0
--- /dev/null
+++ b/archivers/gsharutils/patches/patch-aa
@@ -0,0 +1,90 @@
+--- doc/remsync.texi.orig Sun Jun 8 22:59:35 1997
++++ doc/remsync.texi Sun Jun 8 23:02:50 1997
+@@ -2,6 +2,11 @@
+ @c %**start of header
+ @setfilename remsync.info
+ @settitle @code{remsync} reference manual
++@dircategory File transfer and archiving tools
++@direntry
++* remsync: (remsync). Synchronize remote directory
++ trees using email.
++@end direntry
+ @finalout
+ @setchapternewpage odd
+ @c %**end of header
+--- doc/sharutils.texi.orig Sun Jun 8 22:59:41 1997
++++ doc/sharutils.texi Sun Jun 8 23:10:37 1997
+@@ -2,6 +2,16 @@
+ @c %**start of header
+ @setfilename sharutils.info
+ @settitle GNU @code{shar} utilities
++@dircategory File transfer and archiving tools
++@direntry
++* Shar utilities: (sharutils). GNU shar utilities.
++* mail-files: (sharutils)mail-files invocation. Send files to remote site.
++* mailshar: (sharutils)mailshar invocation. Make and send a shell archive.
++* shar: (sharutils)shar invocation. Make a shell archive.
++* unshar: (sharutils)unshar invocation. Explode a shell archive.
++* uudecode: (sharutils)uudecode invocation. Restore file from 7-bits.
++* uuencode: (sharutils)uuencode invocation. Force binary file to 7-bits.
++@end direntry
+ @finalout
+ @c %**end of header
+
+@@ -15,21 +26,6 @@
+ @end tex
+
+ @ifinfo
+-@format
+-START-INFO-DIR-ENTRY
+-* Shar utilities: (sharutils). GNU shar utilities.
+-* mail-files: (sharutils)mail-files invocation. Send files to remote site.
+-* mailshar: (sharutils)mailshar invocation. Make and send a shell archive.
+-* remsync: (sharutils)remsync invocation. Synchronize remote files.
+-* shar: (sharutils)shar invocation. Make a shell archive.
+-* unshar: (sharutils)unshar invocation. Explode a shell archive.
+-* uudecode: (sharutils)uudecode invocation. Restore file from 7-bits.
+-* uuencode: (sharutils)uuencode invocation. Force binary file to 7-bits.
+-END-INFO-DIR-ENTRY
+-@end format
+-@end ifinfo
+-
+-@ifinfo
+ This file documents the GNU set of shar utilities.
+
+ Copyright (C) 1994 Free Software Foundation, Inc.
+@@ -157,8 +153,8 @@
+ The format of the @code{shar} command is one of:
+
+ @example
+-shar [ @var{option} ] @dots{} @var{file} @dots{}
+-shar -S [ @var{option} ] @dots{}
++gshar [ @var{option} ] @dots{} @var{file} @dots{}
++gshar -S [ @var{option} ] @dots{}
+ @end example
+
+ In the first form, the file list is given as command arguments. In the
+@@ -548,7 +544,7 @@
+ The format of the @code{unshar} command is:
+
+ @example
+-unshar [ @var{option} ] @dots{} [ @var{file} @dots{} ]
++gunshar [ @var{option} ] @dots{} [ @var{file} @dots{} ]
+ @end example
+
+ Each @var{file} is processed in turn, as a shell archive or a
+@@ -635,10 +631,10 @@
+ Let us conclude by a showing a few examples of @code{shar} usage:
+
+ @example
+-shar *.c > cprog.shar
+-shar -Q *.[ch] > cprog.shar
+-shar -B -l28 -oarc.sh. *.arc
+-shar -f /lcl/src/u*.c > u.sh
++gshar *.c > cprog.shar
++gshar -Q *.[ch] > cprog.shar
++gshar -B -l28 -oarc.sh. *.arc
++gshar -f /lcl/src/u*.c > u.sh
+ @end example
+
+ @noindent
diff --git a/archivers/gsharutils/patches/patch-ac b/archivers/gsharutils/patches/patch-ac
new file mode 100644
index 00000000000..ae683ed43e9
--- /dev/null
+++ b/archivers/gsharutils/patches/patch-ac
@@ -0,0 +1,11 @@
+--- src/shar.c.orig Sun Jun 8 22:47:22 1997
++++ src/shar.c Sun Jun 8 22:47:37 1997
+@@ -688,7 +688,7 @@
+ const char *local_name;
+ const char *restore_name;
+ {
+- fprintf (output, "# %6ld %s %s\n", struct_stat.st_size,
++ fprintf (output, "# %6ld %s %s\n", (long)struct_stat.st_size,
+ mode_string (struct_stat.st_mode), restore_name);
+ return 0;
+ }
diff --git a/archivers/gsharutils/pkg/COMMENT b/archivers/gsharutils/pkg/COMMENT
new file mode 100644
index 00000000000..972c1ce6175
--- /dev/null
+++ b/archivers/gsharutils/pkg/COMMENT
@@ -0,0 +1 @@
+Allow packing and unpacking of shell archives.
diff --git a/archivers/gsharutils/pkg/DESCR b/archivers/gsharutils/pkg/DESCR
new file mode 100644
index 00000000000..b2b6954af7c
--- /dev/null
+++ b/archivers/gsharutils/pkg/DESCR
@@ -0,0 +1,8 @@
+This is the set of GNU shar utilities.
+
+`shar' makes so-called shell archives out of many files, preparing
+them for transmission by electronic mail services. `unshar' helps
+unpacking shell archives after reception. The core of both programs
+is initially derived from public domain. Some modules and other
+code sections are freely borrowed from other GNU distributions,
+bringing `shar' under the terms of the GNU General Public License.
diff --git a/archivers/gsharutils/pkg/PLIST b/archivers/gsharutils/pkg/PLIST
new file mode 100644
index 00000000000..cf2b1b8e64f
--- /dev/null
+++ b/archivers/gsharutils/pkg/PLIST
@@ -0,0 +1,24 @@
+bin/gmail-files
+bin/gmailshar
+bin/gremsync
+bin/gshar
+bin/gunshar
+@unexec install-info --delete %D/info/sharutils.info %D/info/dir
+@unexec install-info --delete %D/info/remsync.info %D/info/dir
+info/sharutils.info
+info/remsync.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/sharutils.info %D/info/dir
+@exec install-info %D/info/remsync.info %D/info/dir
+lib/locale/de/LC_MESSAGES/sharutils.cat
+lib/locale/fr/LC_MESSAGES/sharutils.cat
+lib/locale/ja_JP.EUC/LC_MESSAGES/sharutils.cat
+lib/locale/nl/LC_MESSAGES/sharutils.cat
+lib/locale/pt/LC_MESSAGES/sharutils.cat
+lib/locale/sv/LC_MESSAGES/sharutils.cat
+share/locale/de.gmo/LC_MESSAGES/sharutils.cat
+share/locale/fr.gmo/LC_MESSAGES/sharutils.cat
+share/locale/ja_JP.EUC.gmo/LC_MESSAGES/sharutils.cat
+share/locale/nl.gmo/LC_MESSAGES/sharutils.cat
+share/locale/pt.gmo/LC_MESSAGES/sharutils.cat
+share/locale/sv.gmo/LC_MESSAGES/sharutils.cat