summaryrefslogtreecommitdiff
path: root/sysutils/rox-archive
diff options
context:
space:
mode:
authorcjep <cjep@pkgsrc.org>2002-06-15 13:23:08 +0000
committercjep <cjep@pkgsrc.org>2002-06-15 13:23:08 +0000
commit75c95f7da2d39ff4bba20dfc3ebe7c376c366595 (patch)
tree3c77ea00c0d28d4cd224d50207f78cda522b81fb /sysutils/rox-archive
parentd6c1d0cd608ee2e2e0bc666a3d7c32898da01f0e (diff)
downloadpkgsrc-75c95f7da2d39ff4bba20dfc3ebe7c376c366595.tar.gz
Initial import of rox-archive 0.1.2 into the NetBSD packages collection.
This is a simple ROX application for creating compressed tar files and for extracting various kinds of archive. Supplied by Rui-Xiang Guo in PR#16317. Thanks!
Diffstat (limited to 'sysutils/rox-archive')
-rw-r--r--sysutils/rox-archive/DESCR2
-rw-r--r--sysutils/rox-archive/Makefile36
-rw-r--r--sysutils/rox-archive/PLIST7
-rw-r--r--sysutils/rox-archive/distinfo5
-rw-r--r--sysutils/rox-archive/patches/patch-aa40
5 files changed, 90 insertions, 0 deletions
diff --git a/sysutils/rox-archive/DESCR b/sysutils/rox-archive/DESCR
new file mode 100644
index 00000000000..32647275ca0
--- /dev/null
+++ b/sysutils/rox-archive/DESCR
@@ -0,0 +1,2 @@
+This is a simple ROX application for creating compressed tar files
+and for extracting various kinds of archive.
diff --git a/sysutils/rox-archive/Makefile b/sysutils/rox-archive/Makefile
new file mode 100644
index 00000000000..11d6c3a4be1
--- /dev/null
+++ b/sysutils/rox-archive/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/06/15 13:23:08 cjep Exp $
+#
+
+DISTNAME= Archive-0.1.2
+PKGNAME= rox-archive-0.1.2
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rox/}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= rxg@netbsd.org
+HOMEPAGE= http://rox.sourceforge.net/
+COMMENT= simple archiver
+
+DEPENDS+= rox-lib>=0.1.4:../../sysutils/rox-lib
+
+DIST_SUBDIR= rox
+
+USE_PERL5= yes
+
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+WRKSRC= ${WRKDIR}/Archive
+
+APPDIR= ${PREFIX}/share/rox
+
+post-patch:
+ ${CP} ${WRKSRC}/AppRun ${WRKSRC}/AppRun.1
+ ${SED} -e s:@APPDIR@:"${APPDIR}":g < ${WRKSRC}/AppRun.1 \
+ > ${WRKSRC}/AppRun
+ ${RM} ${WRKSRC}/AppRun.1 ${WRKSRC}/AppRun.orig
+
+do-install:
+ ${CP} -Rf ${WRKSRC} ${APPDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/rox-archive/PLIST b/sysutils/rox-archive/PLIST
new file mode 100644
index 00000000000..c396e4c305e
--- /dev/null
+++ b/sysutils/rox-archive/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/15 13:23:08 cjep Exp $
+share/rox/Archive/AppIcon.xpm
+share/rox/Archive/AppRun
+share/rox/Archive/Help/COPYING
+share/rox/Archive/Help/README
+@dirrm share/rox/Archive/Help
+@dirrm share/rox/Archive
diff --git a/sysutils/rox-archive/distinfo b/sysutils/rox-archive/distinfo
new file mode 100644
index 00000000000..774b06ec0c7
--- /dev/null
+++ b/sysutils/rox-archive/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/06/15 13:23:08 cjep Exp $
+
+SHA1 (rox/Archive-0.1.2.tgz) = 0c0e3f81faa0f18a7d2af3502757dea5e4bac3a1
+Size (rox/Archive-0.1.2.tgz) = 11602 bytes
+SHA1 (patch-aa) = 2dea1b3f2950cbd8a4c41a3e806f6611cc408a04
diff --git a/sysutils/rox-archive/patches/patch-aa b/sysutils/rox-archive/patches/patch-aa
new file mode 100644
index 00000000000..ac194329b50
--- /dev/null
+++ b/sysutils/rox-archive/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/06/15 13:23:08 cjep Exp $
+
+--- AppRun.orig Sun Jul 9 18:22:31 2000
++++ AppRun
+@@ -30,6 +30,8 @@
+ "Drop an archive onto me and I'll extract it.";
+ }
+
++$savebox = "@APPDIR@/ROX-Lib/bin/savebox";
++
+ $path = $ARGV[0];
+
+ # Convert relative paths to absolute (we may chdir() later).
+@@ -65,7 +67,7 @@
+
+ chdir $dir;
+ system "tar cf - \"$leaf\" | gzip -c - | " .
+- "savebox -t application/x-compressed-tar \"$leaf.tgz\"";
++ "$savebox -t application/x-compressed-tar \"$leaf.tgz\"";
+ }
+
+ sub unarchive {
+@@ -154,7 +156,7 @@
+ }
+ else {
+ die unless $extract_stdout;
+- system "$extract_stdout | savebox -t text/plain \"$found\"";
++ system "$extract_stdout | $savebox -t text/plain \"$found\"";
+ }
+ } else {
+ die unless $extract;
+@@ -181,7 +183,7 @@
+ my $leaf = shift;
+ my $dir;
+
+- chop ($dir = `savebox -d \"$leaf\"`);
++ chop ($dir = `$savebox -d \"$leaf\"`);
+
+ return $dir if $dir;
+