aboutsummaryrefslogtreecommitdiff
path: root/devel/sfslite
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-17 11:04:52 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-17 11:04:52 +0000
commitb1e421026014fb1ea1c2ecc7465b3b2ab6632ba7 (patch)
tree47f428d5310517cb15e367dc44fb03a49d6420e3 /devel/sfslite
parented72f750479caab07024fd1fbaff0488030177d9 (diff)
downloadports-b1e421026014fb1ea1c2ecc7465b3b2ab6632ba7.tar.gz
ports-b1e421026014fb1ea1c2ecc7465b3b2ab6632ba7.zip
Notes
Diffstat (limited to 'devel/sfslite')
-rw-r--r--devel/sfslite/Makefile73
-rw-r--r--devel/sfslite/distinfo2
-rw-r--r--devel/sfslite/pkg-descr15
-rw-r--r--devel/sfslite/pkg-install45
-rw-r--r--devel/sfslite/pkg-plist122
5 files changed, 257 insertions, 0 deletions
diff --git a/devel/sfslite/Makefile b/devel/sfslite/Makefile
new file mode 100644
index 000000000000..7163e17a208c
--- /dev/null
+++ b/devel/sfslite/Makefile
@@ -0,0 +1,73 @@
+# New ports collection makefile for: sfslite
+# Date created: 10 September 2005
+# Whom: max
+#
+# $FreeBSD$
+#
+
+PORTNAME= sfslite
+PORTVERSION= 0.8.1
+CATEGORIES= devel
+MASTER_SITES= http://dist.okws.org/dist/
+
+MAINTAINER= ports@okws.org
+COMMENT= Standard version of the sfslite library
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+CONFIGURE_ARGS+=--with-sfsuser=sfs \
+ --with-sfsgroup=sfs
+#
+# rpcc does not work with byacc, so just require BISON
+#
+USE_BISON= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500000
+LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
+CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--with-gmp=/usr
+.endif
+
+#
+# Map X.Y.Z.Q => X.Y
+#
+SHORTVERSION!= ${ECHO} ${PORTVERSION} | sed -Ee 's/([^.]+\.[^.]+).*/\1/'
+
+#
+# if being called from one of the slave distributions (like
+# sfslite-dbg), then the build-mode will be set, and we should
+# rename the port accordingly so that more than one of them can
+# be built.
+#
+.if defined(BUILD_MODE)
+PKGNAMESUFFIX+= -${BUILD_MODE}
+RPCC_BIN?= lib/${PORTNAME}-${SHORTVERSION}/${BUILD_MODE}
+.else
+BUILD_MODE?= shopt
+RPCC_BIN?= bin
+.endif # define(BUILD_MODE)
+
+INSTALLS_SHLIB= yes
+LDCONFIG_DIRS= %%PREFIX%%/lib/${PORTNAME}/${BUILD_MODE}
+
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--with-mode=${BUILD_MODE}
+
+PLIST_SUB= VERSION=${SHORTVERSION} \
+ TAG=${BUILD_MODE} \
+ RPCC_BIN=${RPCC_BIN}
+
+#
+# Slave distributions might override this since they won't have a
+# pkg-install script in their directory.
+#
+PKG_INSTALL?= pkg-install
+
+pre-install:
+ PKG_PREFIX=${PREFIX} ${SH} ${PKG_INSTALL} ${PKGNAME} PRE-INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/devel/sfslite/distinfo b/devel/sfslite/distinfo
new file mode 100644
index 000000000000..47517e1b5fe0
--- /dev/null
+++ b/devel/sfslite/distinfo
@@ -0,0 +1,2 @@
+MD5 (sfslite-0.8.1.tar.gz) = 4d2a029871b8a8e926d29895d48e0634
+SIZE (sfslite-0.8.1.tar.gz) = 688887
diff --git a/devel/sfslite/pkg-descr b/devel/sfslite/pkg-descr
new file mode 100644
index 000000000000..c824f7dd1fc3
--- /dev/null
+++ b/devel/sfslite/pkg-descr
@@ -0,0 +1,15 @@
+This is a port of the SFS-Lite development libraries. The SFS toolkit
+was developed to support the SFS distributed file system (see
+http://www.fs.net). But because others use the toolkit for other
+reasons, we're making SFS's libraries available as a separate,
+lightweight package. sfslite compiles much faster and can be
+installed as different non-conflicting build modes (such as
+sfslite-dbg or sfslite-noopt) so might be better for some applications
+that need the SFS libraries but not SFS.
+
+Maintained as port of the OKWS distribution by Maxwell Krohn.
+
+WWW: http://www.okws.org
+
+- Max
+ports@okws.org
diff --git a/devel/sfslite/pkg-install b/devel/sfslite/pkg-install
new file mode 100644
index 000000000000..1de77adb48a5
--- /dev/null
+++ b/devel/sfslite/pkg-install
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+if [ -n "${PACKAGE_BUILDING}" ]; then
+ exit 0
+fi
+
+USER=sfs
+GROUP=sfs
+UID=171
+GID=171
+PW=/usr/sbin/pw
+COMMENT='Self-Certifying File System'
+
+if [ "$2" = "PRE-INSTALL" ]; then
+ echo -n "Checking for group '$GROUP'... "
+
+ if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then
+ echo -n "doesn't exist, adding... "
+ if ${PW} groupadd $GROUP -g ${GID}; then
+ echo "success."
+ else
+ echo "FAILED!"
+ exit 1
+ fi
+ else
+ echo "exists."
+ fi
+
+ echo -n "Checking for user '$USER'... "
+
+ if ! ${PW} usershow $USER >/dev/null 2>&1; then
+ echo -n "doesn't exist, adding... "
+ if ${PW} useradd $USER -u ${UID} -c ${COMMENT} \
+ -d /nonexistent -g $GROUP -s /sbin/nologin -h -; then
+ echo "success."
+ else
+ echo "FAILED!"
+ exit 1
+ fi
+ else
+ echo "exists."
+ fi
+fi
+
+exit 0
diff --git a/devel/sfslite/pkg-plist b/devel/sfslite/pkg-plist
new file mode 100644
index 000000000000..40835b19984f
--- /dev/null
+++ b/devel/sfslite/pkg-plist
@@ -0,0 +1,122 @@
+%%RPCC_BIN%%/rpcc
+include/sfslite
+include/sfslite-%%VERSION%%/%%TAG%%/aclnt.h
+include/sfslite-%%VERSION%%/%%TAG%%/aes.h
+include/sfslite-%%VERSION%%/%%TAG%%/afsnode.h
+include/sfslite-%%VERSION%%/%%TAG%%/agentconn.h
+include/sfslite-%%VERSION%%/%%TAG%%/agentmisc.h
+include/sfslite-%%VERSION%%/%%TAG%%/aiod.h
+include/sfslite-%%VERSION%%/%%TAG%%/aiod_prot.h
+include/sfslite-%%VERSION%%/%%TAG%%/aios.h
+include/sfslite-%%VERSION%%/%%TAG%%/amisc.h
+include/sfslite-%%VERSION%%/%%TAG%%/arc4.h
+include/sfslite-%%VERSION%%/%%TAG%%/arena.h
+include/sfslite-%%VERSION%%/%%TAG%%/arpc.h
+include/sfslite-%%VERSION%%/%%TAG%%/array.h
+include/sfslite-%%VERSION%%/%%TAG%%/asrv.h
+include/sfslite-%%VERSION%%/%%TAG%%/async.h
+include/sfslite-%%VERSION%%/%%TAG%%/autoconf.h
+include/sfslite-%%VERSION%%/%%TAG%%/axprt.h
+include/sfslite-%%VERSION%%/%%TAG%%/axprt_crypt.h
+include/sfslite-%%VERSION%%/%%TAG%%/backoff.h
+include/sfslite-%%VERSION%%/%%TAG%%/bbuddy.h
+include/sfslite-%%VERSION%%/%%TAG%%/bench.h
+include/sfslite-%%VERSION%%/%%TAG%%/bigint.h
+include/sfslite-%%VERSION%%/%%TAG%%/bitvec.h
+include/sfslite-%%VERSION%%/%%TAG%%/blowfish.h
+include/sfslite-%%VERSION%%/%%TAG%%/callback.h
+include/sfslite-%%VERSION%%/%%TAG%%/cbuf.h
+include/sfslite-%%VERSION%%/%%TAG%%/crypt.h
+include/sfslite-%%VERSION%%/%%TAG%%/crypt_prot.h
+include/sfslite-%%VERSION%%/%%TAG%%/crypt_prot.x
+include/sfslite-%%VERSION%%/%%TAG%%/crypthash.h
+include/sfslite-%%VERSION%%/%%TAG%%/dns.h
+include/sfslite-%%VERSION%%/%%TAG%%/dnsimpl.h
+include/sfslite-%%VERSION%%/%%TAG%%/dnsparse.h
+include/sfslite-%%VERSION%%/%%TAG%%/err.h
+include/sfslite-%%VERSION%%/%%TAG%%/esign.h
+include/sfslite-%%VERSION%%/%%TAG%%/fdlim.h
+include/sfslite-%%VERSION%%/%%TAG%%/getfh3.h
+include/sfslite-%%VERSION%%/%%TAG%%/hashcash.h
+include/sfslite-%%VERSION%%/%%TAG%%/ihash.h
+include/sfslite-%%VERSION%%/%%TAG%%/init.h
+include/sfslite-%%VERSION%%/%%TAG%%/itree.h
+include/sfslite-%%VERSION%%/%%TAG%%/keyfunc.h
+include/sfslite-%%VERSION%%/%%TAG%%/list.h
+include/sfslite-%%VERSION%%/%%TAG%%/litetime.h
+include/sfslite-%%VERSION%%/%%TAG%%/modalg.h
+include/sfslite-%%VERSION%%/%%TAG%%/msb.h
+include/sfslite-%%VERSION%%/%%TAG%%/nfs3_nonnul.h
+include/sfslite-%%VERSION%%/%%TAG%%/nfsserv.h
+include/sfslite-%%VERSION%%/%%TAG%%/nfstrans.h
+include/sfslite-%%VERSION%%/%%TAG%%/ocb.h
+include/sfslite-%%VERSION%%/%%TAG%%/opnew.h
+include/sfslite-%%VERSION%%/%%TAG%%/parseopt.h
+include/sfslite-%%VERSION%%/%%TAG%%/password.h
+include/sfslite-%%VERSION%%/%%TAG%%/pcre.h
+include/sfslite-%%VERSION%%/%%TAG%%/pmap_prot.h
+include/sfslite-%%VERSION%%/%%TAG%%/pmap_prot.x
+include/sfslite-%%VERSION%%/%%TAG%%/prime.h
+include/sfslite-%%VERSION%%/%%TAG%%/prng.h
+include/sfslite-%%VERSION%%/%%TAG%%/qhash.h
+include/sfslite-%%VERSION%%/%%TAG%%/rabin.h
+include/sfslite-%%VERSION%%/%%TAG%%/refcnt.h
+include/sfslite-%%VERSION%%/%%TAG%%/rex.h
+include/sfslite-%%VERSION%%/%%TAG%%/rpctypes.h
+include/sfslite-%%VERSION%%/%%TAG%%/rsa.h
+include/sfslite-%%VERSION%%/%%TAG%%/rwfd.h
+include/sfslite-%%VERSION%%/%%TAG%%/rxx.h
+include/sfslite-%%VERSION%%/%%TAG%%/schnorr.h
+include/sfslite-%%VERSION%%/%%TAG%%/seqno.h
+include/sfslite-%%VERSION%%/%%TAG%%/serial.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfsclient.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfsconnect.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfscrypt.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfsgroupmgr.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfskeymgr.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfskeymisc.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfsmisc.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfsschnorr.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfsserv.h
+include/sfslite-%%VERSION%%/%%TAG%%/sfstty.h
+include/sfslite-%%VERSION%%/%%TAG%%/sha1.h
+include/sfslite-%%VERSION%%/%%TAG%%/stllike.h
+include/sfslite-%%VERSION%%/%%TAG%%/str.h
+include/sfslite-%%VERSION%%/%%TAG%%/suio++.h
+include/sfslite-%%VERSION%%/%%TAG%%/sysconf.h
+include/sfslite-%%VERSION%%/%%TAG%%/tiger.h
+include/sfslite-%%VERSION%%/%%TAG%%/union.h
+include/sfslite-%%VERSION%%/%%TAG%%/uvfstrans.h
+include/sfslite-%%VERSION%%/%%TAG%%/vatmpl.h
+include/sfslite-%%VERSION%%/%%TAG%%/vec.h
+include/sfslite-%%VERSION%%/%%TAG%%/wmstr.h
+include/sfslite-%%VERSION%%/%%TAG%%/xdr_suio.h
+include/sfslite-%%VERSION%%/%%TAG%%/xdrmisc.h
+include/sfslite-%%VERSION%%/%%TAG%%/xhinfo.h
+lib/sfslite
+lib/sfslite-%%VERSION%%/%%TAG%%/aiod
+lib/sfslite-%%VERSION%%/%%TAG%%/env.mk
+lib/sfslite-%%VERSION%%/%%TAG%%/libarpc.a
+lib/sfslite-%%VERSION%%/%%TAG%%/libarpc.la
+lib/sfslite-%%VERSION%%/%%TAG%%/libarpc.so
+lib/sfslite-%%VERSION%%/%%TAG%%/libarpc.so.0
+lib/sfslite-%%VERSION%%/%%TAG%%/libasync.a
+lib/sfslite-%%VERSION%%/%%TAG%%/libasync.la
+lib/sfslite-%%VERSION%%/%%TAG%%/libasync.so
+lib/sfslite-%%VERSION%%/%%TAG%%/libasync.so.0
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfscrypt.a
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfscrypt.la
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfscrypt.so
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfscrypt.so.0
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfsmisc.a
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfsmisc.la
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfsmisc.so
+lib/sfslite-%%VERSION%%/%%TAG%%/libsfsmisc.so.0
+lib/sfslite-%%VERSION%%/%%TAG%%/mallock.o
+lib/sfslite-%%VERSION%%/%%TAG%%/mmcd
+share/nls/POSIX
+share/nls/en_US.US-ASCII
+@dirrm lib/sfslite-%%VERSION%%/%%TAG%%
+@unexec rmdir %D/lib/sfslite-%%VERSION%% 2>/dev/null || true
+@dirrm include/sfslite-%%VERSION%%/%%TAG%%
+@unexec rmdir %D/include/sfslite-%%VERSION%% 2>/dev/null || true