mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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.
This commit is contained in:
parent
3e546f8b2f
commit
43479d1c24
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424663
7 changed files with 111 additions and 0 deletions
|
@ -1323,6 +1323,7 @@
|
|||
SUBDIR += libolecf
|
||||
SUBDIR += liboobs
|
||||
SUBDIR += liboop
|
||||
SUBDIR += libopenbsd
|
||||
SUBDIR += libopencm3
|
||||
SUBDIR += libopensync
|
||||
SUBDIR += libopkele
|
||||
|
|
52
devel/libopenbsd/Makefile
Normal file
52
devel/libopenbsd/Makefile
Normal file
|
@ -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@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>
|
3
devel/libopenbsd/distinfo
Normal file
3
devel/libopenbsd/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1477213204
|
||||
SHA256 (libopenbsd-r298107.tar.xz) = 08621c0034477c892de5b2ae82873c966bd32439689c644ca8d7accd32b9b5b8
|
||||
SIZE (libopenbsd-r298107.tar.xz) = 13464
|
12
devel/libopenbsd/files/patch-Makefile
Normal file
12
devel/libopenbsd/files/patch-Makefile
Normal file
|
@ -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}
|
||||
|
33
devel/libopenbsd/files/patch-man
Normal file
33
devel/libopenbsd/files/patch-man
Normal file
|
@ -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
|
2
devel/libopenbsd/pkg-descr
Normal file
2
devel/libopenbsd/pkg-descr
Normal file
|
@ -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.
|
8
devel/libopenbsd/pkg-plist
Normal file
8
devel/libopenbsd/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue