diff options
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/liberator/Makefile | 66 | ||||
-rw-r--r-- | net-p2p/liberator/distinfo | 1 | ||||
-rw-r--r-- | net-p2p/liberator/files/wrapper.sh | 14 | ||||
-rw-r--r-- | net-p2p/liberator/pkg-descr | 4 | ||||
-rw-r--r-- | net-p2p/liberator/pkg-plist | 27 |
5 files changed, 112 insertions, 0 deletions
diff --git a/net-p2p/liberator/Makefile b/net-p2p/liberator/Makefile new file mode 100644 index 000000000000..c37b8e0a5037 --- /dev/null +++ b/net-p2p/liberator/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: liberator +# Date created: Fri May 2 04:23:24 UTC 2003 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= liberator +PORTVERSION= 2.0.2 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ofcp-${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= Command line client to FreeNet Network + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml + +USE_BZIP2= yes +USE_REINPLACE= yes +ALL_TARGET= all opt + +DATA_FILES= liber_mimetypes +DOC_FILES= COPYING FREESITE-HOWTO README TODO +LIB_FILES= fcp.cma hlfi.cma asfi.cma fcp.cmxa hlfi.cmxa asfi.cmxa \ + fcp.mli hlfreenet.mli asfreenet.mli fieldset.mli \ + fstream.mli \ + fcp.cmi hlfreenet.cmi asfreenet.cmi fieldset.cmi \ + fstream.cmi + +post-patch: + @${SED} -e 's|%%PREFIX%%|${PREFIX}|; \ + s|%%DATADIR%%|${DATADIR:S,^${PREFIX}/,,}|' \ + ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh + +do-configure: + @${REINPLACE_CMD} -E \ + -e 's|^(PREFIX).*$$|\1=${PREFIX}|; \ + s|^(OCAML_PREFIX).*$$|\1=${PREFIX}/lib/ocaml|' \ + ${WRKSRC}/Makefile + +do-install: +# bin + @${INSTALL_PROGRAM} ${WRKSRC}/liber ${PREFIX}/bin/liber-real + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/liber +# data + @${MKDIR} ${DATADIR} +.for file in ${DATA_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR} +.endfor +# doc +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} +.for file in ${DOC_FILES} + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif +# lib + @${MKDIR} ${PREFIX}/lib/ocaml +.for file in ${LIB_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/lib/ocaml +.endfor + +.include <bsd.port.mk> diff --git a/net-p2p/liberator/distinfo b/net-p2p/liberator/distinfo new file mode 100644 index 000000000000..0a766a1ef3bd --- /dev/null +++ b/net-p2p/liberator/distinfo @@ -0,0 +1 @@ +MD5 (ofcp-2.0.2.tar.bz2) = 5a1df995d507a0a2ded38efc7eca4317 diff --git a/net-p2p/liberator/files/wrapper.sh b/net-p2p/liberator/files/wrapper.sh new file mode 100644 index 000000000000..025b61532613 --- /dev/null +++ b/net-p2p/liberator/files/wrapper.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +PREFIX="%%PREFIX%%" +PROGRAM="${0}" +DATADIR="%%DATADIR%%" +MIME_FILE=liber_mimetypes + +if [ ! -f ${MIME_FILE} ] +then + cp -f ${PREFIX}/${DATADIR}/${MIME_FILE} \ + ${HOME}/.${MIME_FILE} +fi + +exec ${PREFIX}/bin/${PROGRAM##*/}-real "${@}" diff --git a/net-p2p/liberator/pkg-descr b/net-p2p/liberator/pkg-descr new file mode 100644 index 000000000000..48c50a5c4d32 --- /dev/null +++ b/net-p2p/liberator/pkg-descr @@ -0,0 +1,4 @@ +Liberator is the unix guru's command line interface to the FreeNet +network, inserting and requesting easily and efficiently. + +WWW: http://sourceforge.net/projects/liberator/ diff --git a/net-p2p/liberator/pkg-plist b/net-p2p/liberator/pkg-plist new file mode 100644 index 000000000000..f3144e976b3c --- /dev/null +++ b/net-p2p/liberator/pkg-plist @@ -0,0 +1,27 @@ +bin/liber +bin/liber-real +lib/ocaml/asfi.cma +lib/ocaml/asfi.cmxa +lib/ocaml/asfreenet.cmi +lib/ocaml/asfreenet.mli +lib/ocaml/fcp.cma +lib/ocaml/fcp.cmi +lib/ocaml/fcp.cmxa +lib/ocaml/fcp.mli +lib/ocaml/fieldset.cmi +lib/ocaml/fieldset.mli +lib/ocaml/fstream.cmi +lib/ocaml/fstream.mli +lib/ocaml/hlfi.cma +lib/ocaml/hlfi.cmxa +lib/ocaml/hlfreenet.cmi +lib/ocaml/hlfreenet.mli +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/FREESITE-HOWTO +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%DATADIR%%/liber_mimetypes +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@unexec rmdir %D/lib/ocaml 2>/dev/null || true |