pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/syncdir



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Thu Jul 20 02:07:27 UTC 2017

Modified Files:
        pkgsrc/devel/syncdir: Makefile distinfo
Added Files:
        pkgsrc/devel/syncdir/patches: patch-syncdir.c
Removed Files:
        pkgsrc/devel/syncdir/patches: patch-aa

Log Message:
Build on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/syncdir/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/syncdir/distinfo
cvs rdiff -u -r1.1.1.1 -r0 pkgsrc/devel/syncdir/patches/patch-aa
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/syncdir/patches/patch-syncdir.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/syncdir/Makefile
diff -u pkgsrc/devel/syncdir/Makefile:1.10 pkgsrc/devel/syncdir/Makefile:1.11
--- pkgsrc/devel/syncdir/Makefile:1.10  Thu Oct  9 14:06:31 2014
+++ pkgsrc/devel/syncdir/Makefile       Thu Jul 20 02:07:27 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/10/09 14:06:31 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2017/07/20 02:07:27 schmonz Exp $
 #
 
 DISTNAME=              syncdir-1.0
@@ -9,11 +9,21 @@ MASTER_SITES=         ${HOMEPAGE}
 MAINTAINER=            schmonz%NetBSD.org@localhost
 HOMEPAGE=              http://untroubled.org/syncdir/
 COMMENT=               Implementation of open, link, rename, and unlink
+LICENSE=               gnu-gpl-v2
 
 USE_LIBTOOL=           yes
 
 INSTALLATION_DIRS=     lib
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+=                fsync
+SUBST_STAGE.fsync=     do-configure
+SUBST_FILES.fsync=     syncdir.c
+SUBST_SED.fsync=       -e 's|syscall(SYS_fsync, FD)|fsync(FD)|'
+.endif
+
 do-build:
        cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c syncdir.c
        cd ${WRKSRC} && ${LIBTOOL} --mode=link ${CC} ${LDFLAGS}         \

Index: pkgsrc/devel/syncdir/distinfo
diff -u pkgsrc/devel/syncdir/distinfo:1.3 pkgsrc/devel/syncdir/distinfo:1.4
--- pkgsrc/devel/syncdir/distinfo:1.3   Tue Nov  3 03:29:34 2015
+++ pkgsrc/devel/syncdir/distinfo       Thu Jul 20 02:07:27 2017
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 03:29:34 agc Exp $
+$NetBSD: distinfo,v 1.4 2017/07/20 02:07:27 schmonz Exp $
 
 SHA1 (syncdir-1.0.tar.gz) = fdc3e282acd4af15e9bffb343ee825d69dde162e
 RMD160 (syncdir-1.0.tar.gz) = b032a8481529c54b4ac149fdf98ad888e0a392f0
 SHA512 (syncdir-1.0.tar.gz) = 0b5262e23e43f34be7bc31ed6baf7624a115a509e459504651b184a0856c7918671db4be1b8e14552f275c49c5c6bbc00d786c57f1d96548a491048674f58317
 Size (syncdir-1.0.tar.gz) = 8878 bytes
-SHA1 (patch-aa) = 7ac1303eddbc91a6e4c709c778acc60e43be4be8

Added files:

Index: pkgsrc/devel/syncdir/patches/patch-syncdir.c
diff -u /dev/null pkgsrc/devel/syncdir/patches/patch-syncdir.c:1.1
--- /dev/null   Thu Jul 20 02:07:27 2017
+++ pkgsrc/devel/syncdir/patches/patch-syncdir.c        Thu Jul 20 02:07:27 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-syncdir.c,v 1.1 2017/07/20 02:07:27 schmonz Exp $
+
+Avoid a Linuxism.
+
+--- syncdir.c.orig     1998-07-13 19:29:57.000000000 +0000
++++ 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