svn commit: r424663 - in head/devel: . libopenbsd libopenbsd/files
Jan Beich
jbeich at FreeBSD.org
Wed Oct 26 02:40:34 UTC 2016
Author: jbeich
Date: Wed Oct 26 02:40:32 2016
New Revision: 424663
URL: https://svnweb.freebsd.org/changeset/ports/424663
Log:
devel/libopenbsd: add new port
libopenbsd is a thin compatibility layer intended to allow a limited set of
OpenBSD software to compile on other BSDs with little or no modification.
Added:
head/devel/libopenbsd/
head/devel/libopenbsd/Makefile (contents, props changed)
head/devel/libopenbsd/distinfo (contents, props changed)
head/devel/libopenbsd/files/
head/devel/libopenbsd/files/patch-Makefile (contents, props changed)
head/devel/libopenbsd/files/patch-man (contents, props changed)
head/devel/libopenbsd/pkg-descr (contents, props changed)
head/devel/libopenbsd/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile (contents, props changed)
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Oct 26 02:17:42 2016 (r424662)
+++ head/devel/Makefile Wed Oct 26 02:40:32 2016 (r424663)
@@ -1323,6 +1323,7 @@
SUBDIR += libolecf
SUBDIR += liboobs
SUBDIR += liboop
+ SUBDIR += libopenbsd
SUBDIR += libopencm3
SUBDIR += libopensync
SUBDIR += libopkele
Added: head/devel/libopenbsd/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libopenbsd/Makefile Wed Oct 26 02:40:32 2016 (r424663)
@@ -0,0 +1,52 @@
+# $FreeBSD$
+
+PORTNAME= libopenbsd
+PORTVERSION= r298107
+CATEGORIES= devel
+MASTER_SITES= LOCAL/jbeich \
+ https://svn.freebsd.org/base/head/lib/${PORTNAME}/:svn
+
+MAINTAINER= jbeich at FreeBSD.org
+COMMENT= imsg and ohash routines from OpenBSD libutil
+
+LICENSE= ISCL
+
+USES= uidfix tar:xz
+MAKE_ENV= SHLIB_MAJOR=0 NO_PROFILE=1
+MAKE_ARGS= INCLUDEDIR="${PREFIX}/include" LIBDIR="${PREFIX}/lib" \
+ MANDIR="${PREFIX}/man/man"
+USE_LDCONFIG= yes
+
+#
+# To update snapshot: make makesum BOOTSTRAP=
+# Specific snapshot: make makesum SVN_FETCH= PORTVERSION=r1234
+#
+.if defined(BOOTSTRAP)
+# XXX SED and _MASTER_SITES_svn aren't defined yet
+SED?= /usr/bin/sed
+SVN_REV!= ${SETENV} LC_ALL=C svn info \
+ ${MASTER_SITES:M*\:svn:S/:svn//} | \
+ ${SED} -n 's/^Last Changed Rev: //p'
+PORTVERSION:= r${SVN_REV}
+.else
+SVN_REV?= ${PORTVERSION:S/r//}
+.endif
+
+.if defined(BOOTSTRAP) || defined(SVN_FETCH)
+FETCH_DEPENDS+= svn:devel/subversion
+
+do-fetch:
+ ${MKDIR} ${WRKDIR}
+ svn export -r${SVN_REV} ${_MASTER_SITES_svn} ${WRKSRC}
+ (cd ${WRKDIR} && ${TAR} cJvf \
+ ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
+ --uid 0 --gid 0 ${DISTNAME})
+ ${REINPLACE_CMD} -i '' '/^PORTVERSION=/s/r.*/r${SVN_REV}/' \
+ ${MASTERDIR}/Makefile
+. if ${USER} == ${MAINTAINER:C/@.*//}
+ -scp ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
+ freefall.freebsd.org:public_distfiles/
+. endif
+.endif
+
+.include <bsd.port.mk>
Added: head/devel/libopenbsd/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libopenbsd/distinfo Wed Oct 26 02:40:32 2016 (r424663)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1477213204
+SHA256 (libopenbsd-r298107.tar.xz) = 08621c0034477c892de5b2ae82873c966bd32439689c644ca8d7accd32b9b5b8
+SIZE (libopenbsd-r298107.tar.xz) = 13464
Added: head/devel/libopenbsd/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libopenbsd/files/patch-Makefile Wed Oct 26 02:40:32 2016 (r424663)
@@ -0,0 +1,12 @@
+--- Makefile.orig 2016-04-16 07:45:30 UTC
++++ Makefile
+@@ -6,7 +6,8 @@ SRCS= getdtablecount.c \
+ imsg-buffer.c \
+ imsg.c \
+ ohash.c
+-INTERNALLIB=
++INCS= imsg.h ohash.h
++MAN= imsg_init.3 ohash_init.3 ohash_interval.3
+
+ CFLAGS+= -I${.CURDIR}
+
Added: head/devel/libopenbsd/files/patch-man
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libopenbsd/files/patch-man Wed Oct 26 02:40:32 2016 (r424663)
@@ -0,0 +1,33 @@
+--- imsg_init.3.orig 2015-11-04 23:52:19 UTC
++++ imsg_init.3
+@@ -46,6 +46,8 @@
+ .Nm msgbuf_write ,
+ .Nm msgbuf_drain
+ .Nd IPC messaging functions
++.Sh LIBRARY
++.Ox Utilities Library (libopenbsd, \-lopenbsd)
+ .Sh SYNOPSIS
+ .In sys/types.h
+ .In sys/queue.h
+--- ohash_init.3.orig 2014-07-29 19:46:13 UTC
++++ ohash_init.3
+@@ -30,6 +30,8 @@
+ .Nm ohash_next ,
+ .Nm ohash_entries
+ .Nd light-weight open hashing
++.Sh LIBRARY
++.Ox Utilities Library (libopenbsd, \-lopenbsd)
+ .Sh SYNOPSIS
+ .In stdint.h
+ .In stddef.h
+--- ohash_interval.3.orig 2014-07-29 19:46:13 UTC
++++ ohash_interval.3
+@@ -24,6 +24,8 @@
+ .Nm ohash_qlookup ,
+ .Nm ohash_qlookupi
+ .Nd helper functions for open hashing
++.Sh LIBRARY
++.Ox Utilities Library (libopenbsd, \-lopenbsd)
+ .Sh SYNOPSIS
+ .In stdint.h
+ .In stddef.h
Added: head/devel/libopenbsd/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libopenbsd/pkg-descr Wed Oct 26 02:40:32 2016 (r424663)
@@ -0,0 +1,2 @@
+libopenbsd is a thin compatibility layer intended to allow a limited set of
+OpenBSD software to compile on other BSDs with little or no modification.
Added: head/devel/libopenbsd/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libopenbsd/pkg-plist Wed Oct 26 02:40:32 2016 (r424663)
@@ -0,0 +1,8 @@
+include/imsg.h
+include/ohash.h
+lib/libopenbsd.a
+lib/libopenbsd.so
+lib/libopenbsd.so.0
+man/man3/imsg_init.3.gz
+man/man3/ohash_init.3.gz
+man/man3/ohash_interval.3.gz
More information about the svn-ports-all
mailing list