pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/syncdir Initial import of Bruce Guenter's syncdi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ccdb19301f1e
branches: trunk
changeset: 479461:ccdb19301f1e
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Sun Aug 15 00:45:50 2004 +0000
description:
Initial import of Bruce Guenter's syncdir library. In order to
portably create the shared library, I've libtoolized it (tested on
NetBSD 2.0_BETA and Darwin 7.5.0).
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.
diffstat:
devel/syncdir/DESCR | 4 ++++
devel/syncdir/Makefile | 29 +++++++++++++++++++++++++++++
devel/syncdir/PLIST | 6 ++++++
devel/syncdir/buildlink3.mk | 18 ++++++++++++++++++
devel/syncdir/distinfo | 5 +++++
devel/syncdir/patches/patch-aa | 13 +++++++++++++
6 files changed, 75 insertions(+), 0 deletions(-)
diffs (99 lines):
diff -r 07da2461411e -r ccdb19301f1e devel/syncdir/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/syncdir/DESCR Sun Aug 15 00:45:50 2004 +0000
@@ -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 -r 07da2461411e -r ccdb19301f1e devel/syncdir/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/syncdir/Makefile Sun Aug 15 00:45:50 2004 +0000
@@ -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@localhost
+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 -r 07da2461411e -r ccdb19301f1e devel/syncdir/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/syncdir/PLIST Sun Aug 15 00:45:50 2004 +0000
@@ -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 -r 07da2461411e -r ccdb19301f1e devel/syncdir/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/syncdir/buildlink3.mk Sun Aug 15 00:45:50 2004 +0000
@@ -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 -r 07da2461411e -r ccdb19301f1e devel/syncdir/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/syncdir/distinfo Sun Aug 15 00:45:50 2004 +0000
@@ -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 -r 07da2461411e -r ccdb19301f1e devel/syncdir/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/syncdir/patches/patch-aa Sun Aug 15 00:45:50 2004 +0000
@@ -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>
+
Home |
Main Index |
Thread Index |
Old Index