Tested on amd64

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/colortree/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile    17 Aug 2015 09:07:22 -0000      1.1.1.1
+++ Makefile    22 Apr 2016 07:25:10 -0000
@@ -8,6 +8,7 @@ PKGNAME=        colortree-$V
 CATEGORIES =   sysutils

 HOMEPAGE =     http://mama.indstate.edu/users/ice/tree/
+REVISION =      0

 MAINTAINER =   David Dahlberg <david+bsd@dahlberg.cologne>

@@ -17,6 +18,7 @@ PERMIT_PACKAGE_CDROM =        Yes
 MASTER_SITES = http://mama.indstate.edu/users/ice/tree/src/
 EXTRACT_SUFX = .tgz

+# uses pledge()
 WANTLIB =      c
 NO_TEST =      Yes
 SEPARATE_BUILD =       Yes
cvs server: Diffing patches
Index: patches/patch-tree_c
===================================================================
RCS file: patches/patch-tree_c
diff -N patches/patch-tree_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-tree_c        22 Apr 2016 07:25:10 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+--- tree.c.orig        Fri Apr 22 00:20:41 2016
++++ tree.c     Fri Apr 22 00:21:33 2016
+@@ -103,6 +103,11 @@ int main(int argc, char **argv)
+   dirs[0] = 0;
+   Level = -1;
+
++  if (pledge("stdio rpath", NULL) == -1){
++    fprintf(stderr, "%s: pledge\n", argv[0]);
++      exit(1);
++  }
++
+   setlocale(LC_CTYPE, "");
+   setlocale(LC_COLLATE, "");
+

Reply via email to