From 65c9f5036b39487e29ebf27462901ef2821cf39b Mon Sep 17 00:00:00 2001 From: Volker Stolz Date: Fri, 25 Jun 2004 11:10:58 +0000 Subject: [PATCH] Add dazuko 2.0.2, a common interface for 3rd party file access control. PR: ports/63624 Submitted by: Rob Evers --- security/Makefile | 1 + security/dazuko/Makefile | 30 ++++++++++++++++++++++++++++++ security/dazuko/distinfo | 2 ++ security/dazuko/pkg-deinstall | 8 ++++++++ security/dazuko/pkg-descr | 6 ++++++ security/dazuko/pkg-install | 11 +++++++++++ security/dazuko/pkg-plist | 2 ++ 7 files changed, 60 insertions(+) create mode 100644 security/dazuko/Makefile create mode 100644 security/dazuko/distinfo create mode 100644 security/dazuko/pkg-deinstall create mode 100644 security/dazuko/pkg-descr create mode 100644 security/dazuko/pkg-install create mode 100644 security/dazuko/pkg-plist diff --git a/security/Makefile b/security/Makefile index bfbf32f7a695..c9f289e69297 100644 --- a/security/Makefile +++ b/security/Makefile @@ -57,6 +57,7 @@ SUBDIR += cyrus-sasl SUBDIR += cyrus-sasl2 SUBDIR += cyrus-sasl2-saslauthd + SUBDIR += dazuko SUBDIR += dcetest SUBDIR += ddos_scan SUBDIR += destroy diff --git a/security/dazuko/Makefile b/security/dazuko/Makefile new file mode 100644 index 000000000000..51d3e14e0fe1 --- /dev/null +++ b/security/dazuko/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: dazuko +# Date created: 01 March 2004 +# Whom: Rob Evers +# +# $FreeBSD$ + +PORTNAME= dazuko +PORTVERSION= 2.0.2 +CATEGORIES= security +MASTER_SITES= http://dazuko.org/files/ + +MAINTAINER= rob@debank.tv +COMMENT= A common interface for 3rd party file access control + +HAS_CONFIGURE= yes + +.include + +.if !${OSVERSION} < 500000 +IGNORE= "Only compiles on 4.x" +.endif + +do-install: + ${MKDIR} ${PREFIX}/modules/ + ${INSTALL_DATA} ${WRKSRC}/dazuko.ko ${PREFIX}/modules/dazuko.ko + +post-install: + ${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL + +.include diff --git a/security/dazuko/distinfo b/security/dazuko/distinfo new file mode 100644 index 000000000000..bc5c46e1d0a8 --- /dev/null +++ b/security/dazuko/distinfo @@ -0,0 +1,2 @@ +MD5 (dazuko-2.0.2.tar.gz) = d9f25cc256308a27ee98bde0c2cfabcb +SIZE (dazuko-2.0.2.tar.gz) = 70140 diff --git a/security/dazuko/pkg-deinstall b/security/dazuko/pkg-deinstall new file mode 100644 index 000000000000..fa1377823c16 --- /dev/null +++ b/security/dazuko/pkg-deinstall @@ -0,0 +1,8 @@ +if [ ! "$2" = "POST-DEINSTALL" ]; then + exit 0 +fi + +echo "" +echo "If you want to completely remove this package" +echo "remove /dev/dazuko" +echo "" diff --git a/security/dazuko/pkg-descr b/security/dazuko/pkg-descr new file mode 100644 index 000000000000..a8f4ebdfeb7b --- /dev/null +++ b/security/dazuko/pkg-descr @@ -0,0 +1,6 @@ +A common interface across all platforms is needed for 3rd party file +access control. With such an interface, focus could be redirected +from OS hacking to solving real problems. The interface is here. It +is called Dazuko. + +WWW: http://dazuko.org/ diff --git a/security/dazuko/pkg-install b/security/dazuko/pkg-install new file mode 100644 index 000000000000..34c41281e8e7 --- /dev/null +++ b/security/dazuko/pkg-install @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "$2" = "POST-INSTALL" ]; then + if ! [ -c /dev/dazuko ]; then + mknod /dev/dazuko c 33 0 + fi + echo "" + echo "To load the module do kldload $1/modules/dazuko.ko" + echo "" +fi +exit 0 diff --git a/security/dazuko/pkg-plist b/security/dazuko/pkg-plist new file mode 100644 index 000000000000..bf2e1df9fb2b --- /dev/null +++ b/security/dazuko/pkg-plist @@ -0,0 +1,2 @@ +modules/dazuko.ko +@unexec rmdir %D/modules 2>/dev/null || true