Permalink
Browse files

import svrcore and WIP 389

  • Loading branch information...
1 parent 6f69a95 commit bca0c438bfc08c32149862bab920c2ab51bedea6 @jirib committed Jan 6, 2013
@@ -0,0 +1,68 @@
+# $OpenBSD$
+
+SHARED_ONLY = Yes
+ONLY_FOR_ARCHS= alpha amd64 arm i386 powerpc sparc64
+SHARED_LIBS += svrcore 0.0
+
+COMMENT= libraty to handle secure PIN using NSS crypto
+
+DISTNAME= svrcore-4.0.4
+CATEGORIES= security devel
+
+HOMEPAGE= https://wiki.mozilla.org/LDAP_C_SDK
+
+#
+PERMIT_PACKAGE_CDROM= Yes
+PERMIT_PACKAGE_FTP= Yes
+PERMIT_DISTFILES_CDROM= Yes
+PERMIT_DISTFILES_FTP= Yes
+
+MASTER_SITES ?= http://releases.mozilla.org/pub/mozilla.org/directory/svrcore/releases/${DISTNAME:S/^svrcore-//}/src/ \
+ https://ftp.mozilla.org/pub/mozilla.org/directory/svrcore/releases/${DISTNAME:S/^svrcore-//}/src/ \
+ ftp://ftp.mozilla.org/pub/mozilla.org/directory/svrcore/releases/${DISTNAME:S/^svrcore-//}/src/
+
+EXTRACT_SUFX= .tar.bz2
+
+LIB_DEPENDS += devel/nspr>=4.9.3 \
+ security/nss>=3.14
+
+USE_GMAKE= Yes
+USE_LIBTOOL= Yes
+#AUTOCONF_VERSION = 2.13
+
+CONFIGURE_STYLE=gnu
+
+#.if ${MACHINE_ARCH} == "powerpc"
+#CONFIGURE_ENV += LDFLAGS="-Wl,--no-keep-memory -Wl,--relax"
+#.else
+#CONFIGURE_ENV += LDFLAGS="-Wl,--no-keep-memory"
+#.endif
+CONFIGURE_ENV +=${MAKE_ENV} \
+ PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig"
+
+#CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+# LDFLAGS="-L${LOCALBASE}/lib"
+
+DPB_PROPERTIES = parallel
+SEPARATE_BUILD = Yes
+
+#pre-configure:
+#.for d in ${MOZILLA_AUTOCONF_DIRS}
+# cd ${WRKSRC}/${d} && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
+#.endfor
+
+#do-build:
+# @cd ${WRKSRC}/client && \
+# env -i ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
+# -f ${MAKE_FILE} ${ALL_TARGET}
+
+.include <bsd.port.mk>
+
+
+#===
+
+#.for _lib in ${MOZILLA_LIBS}
+#SHARED_LIBS += ${_lib} ${SO_VERSION}
+#.endfor
+
+
@@ -0,0 +1,2 @@
+SHA256 (svrcore-4.0.4.tar.bz2) = R3L7RwVJLeEfENPgIPDOyiVBQVwAmuVESYjWvsyjalg=
+SIZE (svrcore-4.0.4.tar.bz2) = 217076
@@ -0,0 +1,17 @@
+The Netscape svrcore library is a kind of object-oriented package for
+handling PIN requests from NSS.
+
+Terry Hayes wrote the Netscape svrcore library in 1998. Valerie Chu
+wrote the ntgetpin.c and related files.
+
+svrcore used to contain two major parts.
+
+The first part is what we released on mozilla. It is a kind of
+object-oriented package for handling PIN requests from NSS. The idea was
+to provide a standard way for servers to allow PIN input from a file or
+from the terminal. There is also a PIN handler that caches the PIN in
+memory after encrypting it with a key on a device (such as a Fortezza
+card). This allowed a server to restart without having to reenter the
+PIN. However since the PIN is encrypted, a core dump would not expose
+it. In addition, removing the device would also make the PIN
+inaccessible.
@@ -0,0 +1,6 @@
+@comment $OpenBSD$
+include/svrcore.h
+lib/libsvrcore.a
+lib/libsvrcore.la
+@lib lib/libsvrcore.so.${LIBsvrcore_VERSION}
+lib/pkgconfig/svrcore.pc
@@ -0,0 +1,9 @@
+# $OpenBSD$
+
+SUBDIR =
+SUBDIR += ds-base
+#SUBDIR += ds-console
+#SUBDIR += admin
+#SUBDIR += admin-console
+
+.include <bsd.port.subdir.mk>
@@ -0,0 +1,12 @@
+# $OpenBSD$
+
+COMMENT = 389 Directory Server (LDAP) ${SUBCOMMENT}
+HOMEPAGE = http://directory.fedoraproject.org
+MASTER_SITES = http://port389.org/sources/
+EXTRACT_SUFX = .tar.bz2
+
+# GPLv2
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP = Yes
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP = Yes
@@ -0,0 +1,36 @@
+# $OpenBSD$
+
+SUBCOMMENT = core engine and cli
+
+DISTNAME= 389-ds-base-1.2.11.15
+CATEGORIES= sysutils
+
+LIB_DEPENDS += devel/nspr>=4.9.3 \
+ security/nss>=3.14 \
+ security/svrcore \
+ net/net-snmp \
+ databases/openldap-client \
+ textproc/icu4c \
+ security/cyrus-sasl
+
+USE_GMAKE= Yes
+USE_LIBTOOL= Yes
+
+
+CONFIGURE_STYLE=gnu
+
+#.if ${MACHINE_ARCH} == "powerpc"
+#CONFIGURE_ENV += LDFLAGS="-Wl,--no-keep-memory -Wl,--relax"
+#.else
+#CONFIGURE_ENV += LDFLAGS="-Wl,--no-keep-memory"
+#.endif
+CONFIGURE_ENV +=${MAKE_ENV} \
+ PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig"
+
+#CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+# LDFLAGS="-L${LOCALBASE}/lib"
+
+DPB_PROPERTIES = parallel
+SEPARATE_BUILD = Yes
+
+.include <bsd.port.mk>

0 comments on commit bca0c43

Please sign in to comment.