summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/libcabinet/Makefile27
-rw-r--r--archivers/libcabinet/distinfo1
-rw-r--r--archivers/libcabinet/files/patch-aa16
-rw-r--r--archivers/libcabinet/files/patch-ab11
-rw-r--r--archivers/libcabinet/pkg-comment1
-rw-r--r--archivers/libcabinet/pkg-descr4
-rw-r--r--archivers/libcabinet/pkg-plist18
8 files changed, 79 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 6e1ad7e..44a29d00 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -14,6 +14,7 @@
SUBDIR += hpack.non-usa.only
SUBDIR += lha
SUBDIR += libarc
+ SUBDIR += libcabinet
SUBDIR += linux_rar
SUBDIR += lzo
SUBDIR += lzop
diff --git a/archivers/libcabinet/Makefile b/archivers/libcabinet/Makefile
new file mode 100644
index 0000000..4a87b95
--- /dev/null
+++ b/archivers/libcabinet/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: libcabinet
+# Date Created: 30 November 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libcabinet
+PORTVERSION= 0.30
+CATEGORIES= archivers
+MASTER_SITES= http://trill.cis.fordham.edu/~barbacha/cabinet_library/
+
+MAINTAINER= sobomax@FreeBSD.org
+
+SRCFILE= ${WRKSRC}/listcab.cpp
+PROGFILE= ${SRCFILE:S/.cpp$//}
+
+post-build:
+ ${CXX} ${CXXFLAGS} -o ${PROGFILE} ${SRCFILE} -L${WRKSRC} -lcabinet
+
+pre-install:
+ ${MKDIR} ${PREFIX}/include/cabinet
+
+post-install:
+ ${INSTALL_PROGRAM} ${PROGFILE} ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/archivers/libcabinet/distinfo b/archivers/libcabinet/distinfo
new file mode 100644
index 0000000..f77ff3c
--- /dev/null
+++ b/archivers/libcabinet/distinfo
@@ -0,0 +1 @@
+MD5 (libcabinet-0.30.tar.gz) = f6b0683b4cf57ee3b9614135d0f8d0fe
diff --git a/archivers/libcabinet/files/patch-aa b/archivers/libcabinet/files/patch-aa
new file mode 100644
index 0000000..f679e77
--- /dev/null
+++ b/archivers/libcabinet/files/patch-aa
@@ -0,0 +1,16 @@
+--- Makefile.orig Thu Nov 30 17:28:23 2000
++++ Makefile Thu Nov 30 17:35:00 2000
+@@ -0,0 +1,13 @@
++LIB= cabinet
++LIBDIR= ${PREFIX}/lib
++INCDIR= ${PREFIX}/include/cabinet
++SHLIB_MAJOR= 1
++SHLIB_MINOR= 0
++SRCS= bstring.cpp cfcreate.cpp cfdblock.cpp cffdrmgr.cpp cffile.cpp \
++ cffolder.cpp cfheader.cpp cfreader.cpp cftypes.cpp object.cpp
++INCS= bstring.h cfcreate.h cfdblock.h cffdrmgr.h cffile.h cffolder.h \
++ cfheader.h cfreader.h cftypes.h darray.h dos_comp.h object.hpp \
++ queue.hpp
++LDADD= -lz
++
++.include <bsd.lib.mk>
diff --git a/archivers/libcabinet/files/patch-ab b/archivers/libcabinet/files/patch-ab
new file mode 100644
index 0000000..b36dca6
--- /dev/null
+++ b/archivers/libcabinet/files/patch-ab
@@ -0,0 +1,11 @@
+--- bstring.cpp 2000/11/30 14:50:57 1.1
++++ bstring.cpp 2000/11/30 14:57:48
+@@ -150,7 +150,7 @@
+ if(strlen(str) < strlen(s)) // If more memory is needed
+ *this = s; // Use assign function
+ else // If stpcpy can be used
+- stpcpy(str, s); // Copy s into str
++ strcpy(str, s); // Copy s into str
+ }
+
+ return *this; // Return a refrence to this object
diff --git a/archivers/libcabinet/pkg-comment b/archivers/libcabinet/pkg-comment
new file mode 100644
index 0000000..605d658
--- /dev/null
+++ b/archivers/libcabinet/pkg-comment
@@ -0,0 +1 @@
+A portable library and utility to use Microsoft cabinet files (.cab)
diff --git a/archivers/libcabinet/pkg-descr b/archivers/libcabinet/pkg-descr
new file mode 100644
index 0000000..bcee7c6
--- /dev/null
+++ b/archivers/libcabinet/pkg-descr
@@ -0,0 +1,4 @@
+A portable library and small utility that can be used to create, use, and
+modify Microsoft cabinet files (.cab) on any system.
+
+WWW: http://trill.cis.fordham.edu/~barbacha/cabinet_library/
diff --git a/archivers/libcabinet/pkg-plist b/archivers/libcabinet/pkg-plist
new file mode 100644
index 0000000..54eb447
--- /dev/null
+++ b/archivers/libcabinet/pkg-plist
@@ -0,0 +1,18 @@
+bin/listcab
+include/cabinet/bstring.h
+include/cabinet/cfcreate.h
+include/cabinet/cfdblock.h
+include/cabinet/cffdrmgr.h
+include/cabinet/cffile.h
+include/cabinet/cffolder.h
+include/cabinet/cfheader.h
+include/cabinet/cfreader.h
+include/cabinet/cftypes.h
+include/cabinet/darray.h
+include/cabinet/dos_comp.h
+include/cabinet/object.hpp
+include/cabinet/queue.hpp
+lib/libcabinet.a
+lib/libcabinet.so
+lib/libcabinet.so.1
+@dirrm include/cabinet
OpenPOWER on IntegriCloud