summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/syncdir/DESCR4
-rw-r--r--devel/syncdir/Makefile29
-rw-r--r--devel/syncdir/PLIST6
-rw-r--r--devel/syncdir/buildlink3.mk18
-rw-r--r--devel/syncdir/distinfo5
-rw-r--r--devel/syncdir/patches/patch-aa13
6 files changed, 75 insertions, 0 deletions
diff --git a/devel/syncdir/DESCR b/devel/syncdir/DESCR
new file mode 100644
index 00000000000..bc6abcac2ff
--- /dev/null
+++ b/devel/syncdir/DESCR
@@ -0,0 +1,4 @@
+syncdir is a small library that makes the link() system call
+synchronous. This is necessary when using qmail with the queue on
+a filesystem that doesn't perform link() synchronously, such as
+Linux's ext2fs, Reiserfs, SGI's XFS, and BSD FFS with softupdates.
diff --git a/devel/syncdir/Makefile b/devel/syncdir/Makefile
new file mode 100644
index 00000000000..150034318b1
--- /dev/null
+++ b/devel/syncdir/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/08/15 00:45:50 schmonz Exp $
+#
+
+DISTNAME= syncdir-1.0
+CATEGORIES= devel
+MASTER_SITES= ${HOMEPAGE}
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://untroubled.org/syncdir/
+COMMENT= Implementation of open, link, rename, and unlink
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_BUILDLINK3= yes
+USE_LIBTOOL= # defined
+
+INSTALLATION_DIRS= lib
+
+do-build:
+ cd ${WRKSRC}; \
+ ${PKG_LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c syncdir.c; \
+ ${PKG_LIBTOOL} --mode=link ${CC} ${LDFLAGS} -version-info 1:0:0 -rpath ${PREFIX}/lib -o libsyncdir.la syncdir.lo
+
+do-install:
+ cd ${WRKSRC}; \
+ ${PKG_LIBTOOL} --mode=install ${INSTALL_LIB} -c libsyncdir.la ${PREFIX}/lib/libsyncdir.la; \
+ ${PKG_LIBTOOL} --mode=install ${INSTALL_LIB} -c .libs/libsyncdir.a ${PREFIX}/lib/libsyncdir.a
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/syncdir/PLIST b/devel/syncdir/PLIST
new file mode 100644
index 00000000000..64083ec8ea3
--- /dev/null
+++ b/devel/syncdir/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/15 00:45:50 schmonz Exp $
+lib/libsyncdir.a
+lib/libsyncdir.la
+lib/libsyncdir.so
+lib/libsyncdir.so.1
+lib/libsyncdir.so.1.0
diff --git a/devel/syncdir/buildlink3.mk b/devel/syncdir/buildlink3.mk
new file mode 100644
index 00000000000..1188a61eefa
--- /dev/null
+++ b/devel/syncdir/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/08/15 00:45:50 schmonz Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+SYNCDIR_BUILDLINK3_MK:= ${SYNCDIR_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= syncdir
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nsyncdir}
+BUILDLINK_PACKAGES+= syncdir
+
+.if !empty(SYNCDIR_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.syncdir+= syncdir>=1.0
+BUILDLINK_PKGSRCDIR.syncdir?= ../../devel/syncdir
+.endif # SYNCDIR_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/syncdir/distinfo b/devel/syncdir/distinfo
new file mode 100644
index 00000000000..9049f50bb41
--- /dev/null
+++ b/devel/syncdir/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/08/15 00:45:50 schmonz Exp $
+
+SHA1 (syncdir-1.0.tar.gz) = fdc3e282acd4af15e9bffb343ee825d69dde162e
+Size (syncdir-1.0.tar.gz) = 8878 bytes
+SHA1 (patch-aa) = 7ac1303eddbc91a6e4c709c778acc60e43be4be8
diff --git a/devel/syncdir/patches/patch-aa b/devel/syncdir/patches/patch-aa
new file mode 100644
index 00000000000..5e4fb128a18
--- /dev/null
+++ b/devel/syncdir/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/08/15 00:45:50 schmonz Exp $
+
+--- syncdir.c.orig 1998-07-13 15:29:57.000000000 -0400
++++ syncdir.c
+@@ -25,7 +25,7 @@
+ #undef open
+ #include <unistd.h>
+ #include <string.h>
+-#include <syscall.h>
++#include <sys/syscall.h>
+ #include <stdio.h>
+ #include <errno.h>
+