summaryrefslogtreecommitdiff
path: root/devel/libportlib
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-04-27 11:54:52 +0000
committeragc <agc@pkgsrc.org>2001-04-27 11:54:52 +0000
commit48b55a0402fea8a3662dac959becba6a023382dc (patch)
tree23b749de28de9ef3efeb97b340ece61b9909afcf /devel/libportlib
parent28052f7f30e01a7e2756e375fbf1a869fa36e4b4 (diff)
downloadpkgsrc-48b55a0402fea8a3662dac959becba6a023382dc.tar.gz
Initial import of libportlib-1.01 into the packages collection.
Provided in PR 12582 by Ben Collver (collver@linuxfreemail.com). This library provides a consistent interface across systems to operations that tend to vary in ugly ways for different UNIX systems, such as file locking and directory reading.
Diffstat (limited to 'devel/libportlib')
-rw-r--r--devel/libportlib/Makefile21
-rw-r--r--devel/libportlib/distinfo5
-rw-r--r--devel/libportlib/patches/patch-aa91
-rw-r--r--devel/libportlib/pkg/DESCR3
-rw-r--r--devel/libportlib/pkg/PLIST3
5 files changed, 123 insertions, 0 deletions
diff --git a/devel/libportlib/Makefile b/devel/libportlib/Makefile
new file mode 100644
index 00000000000..33181b8b273
--- /dev/null
+++ b/devel/libportlib/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/27 11:54:52 agc Exp $
+#
+
+DISTNAME= portlib-1.01
+PKGNAME= libportlib-1.01
+CATEGORIES= devel
+MASTER_SITES= http://www.primate.wisc.edu/software/portlib/
+
+MAINTAINER= collver@linuxfreemail.com
+HOMEPAGE= http://www.primate.wisc.edu/software/portlib/
+COMMENT= portable file locking and directory reading
+
+WRKSRC= ${WRKDIR}/portlib-1.01
+
+post-patch:
+ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.bak
+ ${SED} <${WRKSRC}/Makefile.bak >${WRKSRC}/Makefile \
+ -e 's|/usr/local|${PREFIX}|' \
+ -e 's|/usr/ucb/install|${INSTALL}|'
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libportlib/distinfo b/devel/libportlib/distinfo
new file mode 100644
index 00000000000..754123d7410
--- /dev/null
+++ b/devel/libportlib/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/04/27 11:54:52 agc Exp $
+
+SHA1 (portlib-1.01.tar.gz) = b1cfc22c5c8550f26daca3043e5379a7358302a3
+Size (portlib-1.01.tar.gz) = 12589 bytes
+SHA1 (patch-aa) = b85fa88f072a8fa82070e3ad381d84c88748aaa6
diff --git a/devel/libportlib/patches/patch-aa b/devel/libportlib/patches/patch-aa
new file mode 100644
index 00000000000..91bd42f5a3c
--- /dev/null
+++ b/devel/libportlib/patches/patch-aa
@@ -0,0 +1,91 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/27 11:54:52 agc Exp $
+
+--- Makefile.orig Sun Apr 8 19:58:28 2001
++++ Makefile Sun Apr 8 20:03:43 2001
+@@ -157,8 +157,8 @@
+ STD_CPP_DEFINES =
+
+ STD_INCLUDES = -I$(LOCALINCLUDEROOT)
+- STD_DEFINES = -Dsun -DSVR4
+- STD_LDLIBS = -lsocket -lnsl -lw
++ STD_DEFINES =
++ STD_LDLIBS =
+ STD_LDFLAGS = -L$(LOCALUSRLIBDIR)
+
+ # Project-specific include file directories, defines, etc.
+@@ -170,7 +170,7 @@
+
+ LOADERLIBPREFIX =
+ CDEBUGFLAGS = -O
+- CCOPTIONS = -Xc
++ CCOPTIONS =
+
+ ALLINCLUDES = $(INCLUDES) $(PROJECT_INCLUDES) $(STD_INCLUDES)
+ ALLDEFINES = $(STD_DEFINES) $(PROJECT_DEFINES) $(DEFINES)
+@@ -282,11 +282,11 @@
+
+ DEFINES = \
+ -DHAS_SYSCONF=1 \
+- -DHAS_FLOCK=0 \
++ -DHAS_FLOCK=1 \
+ -DHAS_FCNTL=1 \
+- -DHAS_SYS_DIR_H=0 \
++ -DHAS_SYS_DIR_H=1 \
+ -DHAS_DIRENT_H=1 \
+- -DHAS_BCOPY=0
++ -DHAS_BCOPY=1
+
+ LIBSRCS = ato.c dir.c fd.c lock.c mem.c $(STRSRCS)
+ LIBOBJS = ato.o dir.o fd.o lock.o mem.o $(STROBJS)
+@@ -474,7 +474,8 @@
+ porttest:: porttest.sh
+ $(RM) $@
+ echo "#!"$(SHELL) > $@
+- $(MSUB) porttest.sh >> $@
++ $(CAT) porttest.sh >> $@
++# $(MSUB) porttest.sh >> $@
+ $(CHMOD) a+x $@
+
+ clean::
+@@ -600,26 +601,24 @@
+
+ # DO NOT DELETE
+
+-ato.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
+-ato.o: /usr/include/math.h /usr/include/floatingpoint.h
+-ato.o: /usr/include/sys/ieeefp.h
+-dir.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
+-dir.o: /usr/include/sys/types.h /usr/include/sys/isa_defs.h
+-dir.o: /usr/include/sys/machtypes.h /usr/include/sys/select.h
++ato.o: /usr/include/stdio.h
++ato.o: /usr/include/math.h
++dir.o: /usr/include/stdio.h
++dir.o: /usr/include/sys/types.h
++dir.o: /usr/include/sys/select.h
+ dir.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/dirent.h
+ dir.o: /usr/include/sys/dirent.h portlib.h
+-fd.o: portlib.h /usr/include/unistd.h /usr/include/sys/feature_tests.h
+-fd.o: /usr/include/sys/types.h /usr/include/sys/isa_defs.h
+-fd.o: /usr/include/sys/machtypes.h /usr/include/sys/select.h
++fd.o: portlib.h /usr/include/unistd.h
++fd.o: /usr/include/sys/types.h
++fd.o: /usr/include/sys/select.h
+ fd.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/unistd.h
+-lock.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
++lock.o: /usr/include/stdio.h
+ lock.o: /usr/include/fcntl.h /usr/include/sys/types.h
+-lock.o: /usr/include/sys/isa_defs.h /usr/include/sys/machtypes.h
+ lock.o: /usr/include/sys/select.h /usr/include/sys/time.h /usr/include/time.h
+ lock.o: /usr/include/sys/fcntl.h portlib.h
+-mem.o: portlib.h /usr/include/string.h /usr/include/sys/feature_tests.h
+-atotest.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h portlib.h
+-dirtest.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h portlib.h
+-fdtest.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h portlib.h
+-locktest.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h portlib.h
+-memtest.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h portlib.h
++mem.o: portlib.h /usr/include/string.h
++atotest.o: /usr/include/stdio.h portlib.h
++dirtest.o: /usr/include/stdio.h portlib.h
++fdtest.o: /usr/include/stdio.h portlib.h
++locktest.o: /usr/include/stdio.h portlib.h
++memtest.o: /usr/include/stdio.h portlib.h
diff --git a/devel/libportlib/pkg/DESCR b/devel/libportlib/pkg/DESCR
new file mode 100644
index 00000000000..978c98a4c8a
--- /dev/null
+++ b/devel/libportlib/pkg/DESCR
@@ -0,0 +1,3 @@
+This library provides a consistent interface across systems to
+operations that tend to vary in ugly ways for different UNIX systems,
+such as file locking and directory reading.
diff --git a/devel/libportlib/pkg/PLIST b/devel/libportlib/pkg/PLIST
new file mode 100644
index 00000000000..f1a95657316
--- /dev/null
+++ b/devel/libportlib/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/27 11:54:52 agc Exp $
+lib/libport.a
+include/portlib.h