summaryrefslogtreecommitdiff
path: root/devel/syncdir/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2004-08-15 00:45:50 +0000
committerschmonz <schmonz@pkgsrc.org>2004-08-15 00:45:50 +0000
commit8e3a361f726fadfd5d0b76d649226f772eea754c (patch)
tree592a4e847fe892bc3794b005ecfe096846654a96 /devel/syncdir/Makefile
parentabed02cb37697aeb14fa5ce8d3623c97b9d0555f (diff)
downloadpkgsrc-8e3a361f726fadfd5d0b76d649226f772eea754c.tar.gz
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 (limited to 'devel/syncdir/Makefile')
-rw-r--r--devel/syncdir/Makefile29
1 files changed, 29 insertions, 0 deletions
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"