pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/syncdir Build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0a7cd789fd20
branches:  trunk
changeset: 365553:0a7cd789fd20
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Jul 20 02:07:27 2017 +0000

description:
Build on SunOS.

diffstat:

 devel/syncdir/Makefile                |  12 +++++++++++-
 devel/syncdir/distinfo                |   3 +--
 devel/syncdir/patches/patch-aa        |  13 -------------
 devel/syncdir/patches/patch-syncdir.c |  15 +++++++++++++++
 4 files changed, 27 insertions(+), 16 deletions(-)

diffs (79 lines):

diff -r b89cba7822de -r 0a7cd789fd20 devel/syncdir/Makefile
--- a/devel/syncdir/Makefile    Wed Jul 19 18:50:33 2017 +0000
+++ b/devel/syncdir/Makefile    Thu Jul 20 02:07:27 2017 +0000
@@ -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 @@
 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}         \
diff -r b89cba7822de -r 0a7cd789fd20 devel/syncdir/distinfo
--- a/devel/syncdir/distinfo    Wed Jul 19 18:50:33 2017 +0000
+++ b/devel/syncdir/distinfo    Thu Jul 20 02:07:27 2017 +0000
@@ -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
diff -r b89cba7822de -r 0a7cd789fd20 devel/syncdir/patches/patch-aa
--- a/devel/syncdir/patches/patch-aa    Wed Jul 19 18:50:33 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$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>
- 
diff -r b89cba7822de -r 0a7cd789fd20 devel/syncdir/patches/patch-syncdir.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/syncdir/patches/patch-syncdir.c     Thu Jul 20 02:07:27 2017 +0000
@@ -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