View | Details | Raw Unified | Return to bug 94588
Collapse All | Expand All

(-)/usr/ports/security/dazuko-new/Makefile (-6 / +21 lines)
Lines 5-11 Link Here
5
# $FreeBSD: ports/security/dazuko/Makefile,v 1.3 2005/09/10 18:37:39 pav Exp $
5
# $FreeBSD: ports/security/dazuko/Makefile,v 1.3 2005/09/10 18:37:39 pav Exp $
6
6
7
PORTNAME=	dazuko
7
PORTNAME=	dazuko
8
PORTVERSION=	2.1.0
8
PORTVERSION=	2.2.0
9
CATEGORIES=	security
9
CATEGORIES=	security
10
MASTER_SITES=	http://dazuko.org/files/
10
MASTER_SITES=	http://dazuko.org/files/
11
11
Lines 13-30 Link Here
13
COMMENT=	A common interface for 3rd party file access control
13
COMMENT=	A common interface for 3rd party file access control
14
14
15
HAS_CONFIGURE=	yes
15
HAS_CONFIGURE=	yes
16
SUB_FILES=	pkg-message
17
18
OPTIONS=	EXAMPLEC	"Install example programs written in C"	off
16
19
17
.include <bsd.port.pre.mk>
20
.include <bsd.port.pre.mk>
18
21
19
.if ${OSVERSION} >= 600000
22
.if defined(WITH_EXAMPLEC)
20
IGNORE=		"Only supports FreeBSD 4.X and 5.X"
23
EXAMPLEC_FLAG=	true
24
PLIST_FILES=	share/examples/${PORTNAME}/example share/examples/${PORTNAME}/example_mt
25
PLIST_DIRS=	share/examples/${PORTNAME}
21
.endif
26
.endif
22
27
28
post-configure:
29
	${REINPLACE_CMD} -e 's|^NOMAN|NO_MAN|g' ${WRKSRC}/library/Makefile
30
23
do-install:
31
do-install:
24
	${MKDIR} ${PREFIX}/modules/
32
.if defined(EXAMPLEC_FLAG)
25
	${INSTALL_DATA} ${WRKSRC}/dazuko.ko ${PREFIX}/modules/dazuko.ko
33
	@cd ${WRKSRC}/example_c && \
34
		${MAKE}
35
	@${MKDIR} ${EXAMPLESDIR}
36
	@${INSTALL_DATA} ${WRKSRC}/example_c/example ${WRKSRC}/example_c/example_mt ${EXAMPLESDIR}
37
.endif
38
39
	@${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} -DMODULES_WITH_WORLD install
26
40
27
post-install:
41
post-install:
28
	${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
42
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
43
	@${CAT} ${PKGMESSAGE}
29
44
30
.include <bsd.port.post.mk>
45
.include <bsd.port.post.mk>
(-)/usr/ports/security/dazuko-new/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (dazuko-2.1.0.tar.gz) = f7e5ea23a0b3a1539bd0c0b96df426f0
1
MD5 (dazuko-2.2.0.tar.gz) = bbe7651888d9904fb6c82fdb02331d82
2
SHA256 (dazuko-2.1.0.tar.gz) = 95a672346e85062b06e855efeaed38cf161f8fce8ee9081958fd7acb1fb7f517
2
SHA256 (dazuko-2.2.0.tar.gz) = 7bf51cefb36a1c572ed16bd4c184087a3903afb88fa8faee8bba22b8c4de29df
3
SIZE (dazuko-2.1.0.tar.gz) = 159456
3
SIZE (dazuko-2.2.0.tar.gz) = 162903
(-)/usr/ports/security/dazuko-new/files/pkg-message.in (+16 lines)
Line 0 Link Here
1
#########################################################################################
2
3
1) Create device /dev/dazuko
4
5
   * FreeBSD 4.x
6
    
7
     # mknod /dev/dazuko c 33 0
8
9
   * FreeBSD >= 5.x
10
11
     It's not neccesary on modern FreeBSD systems
12
13
2) If you selected WITH_EXAMPLEC, you can test module using example and example_mt files
14
   from %%PREFIX%%/share/examples/dazuko directory.
15
16
#########################################################################################
(-)/usr/ports/security/dazuko-new/pkg-deinstall (-6 / +13 lines)
Lines 1-8 Link Here
1
if [ ! "$2" = "POST-DEINSTALL" ]; then
1
if [ ! "$2" = "POST-DEINSTALL" ]; then
2
	exit 0
2
	MODULENAME=dazuko
3
fi
3
	kldstat -n ${MODULENAME} > /dev/null 2>&1; RESULT=$?
4
	if [ ${RESULT} -eq 0 ]; then
5
		kldunload -f -n ${MODULENAME}
6
	fi
4
7
5
echo ""
8
	rm /boot/modules/${MODULENAME}.ko
6
echo "If you want to completely remove this package"
9
	
7
echo "remove /dev/dazuko"
10
	cat /boot/loader.conf | grep ${MODULENAME} > /dev/null 2>&1; RESULT=$?
8
echo ""
11
        if [ ${RESULT} -eq 0 ]; then
12
		sed -i '' -e "/^${MODULENAME}_load.*/d" /boot/loader.conf
13
	fi
14
fi
15
exit 0
(-)/usr/ports/security/dazuko-new/pkg-install (-5 / +26 lines)
Lines 1-11 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
if [ "$2" = "POST-INSTALL" ]; then
3
if [ "$2" = "POST-INSTALL" ]; then
4
	if ! [ -c /dev/dazuko ]; then
4
5
		mknod /dev/dazuko c 33 0
5
MODULENAME=dazuko
6
7
echo -n "Do you want load ${MODULENAME}.ko? [ y/n ]: "
8
read LOADMOD
9
echo
10
11
	if [ x"${LOADMOD}" = x"y" ]; then
12
		kldstat -n ${MODULENAME} > /dev/null 2>&1; RESULT=$?
13
		if [ ${RESULT} -eq 0 ]; then
14
			kldunload -f -n ${MODULENAME}
15
		fi
16
		kldload ${MODULENAME}
6
	fi
17
	fi
7
	echo ""
18
8
	echo "To load the module do kldload $1/modules/dazuko.ko"
19
echo -n "Do you want load ${MODULENAME}.ko on boot time? [ y/n ]: "
9
	echo ""
20
read BOOTMOD
21
echo
22
23
	if [ x"${BOOTMOD}" = x"y" ]; then
24
		cat /boot/loader.conf | grep ${MODULENAME} > /dev/null 2>&1; RESULT=$?
25
		if [ ${RESULT} -eq 0 ]; then
26
			sed -i '' -e 's/^${MODULENAME}_load.*/${MODULENAME}_load="YES"/g' /boot/loader.conf
27
		else
28
		echo "${MODULENAME}_load=\"YES\"" >> /boot/loader.conf
29
		fi
30
        fi
10
fi
31
fi
11
exit 0
32
exit 0
(-)/usr/ports/security/dazuko-new/pkg-plist (-2 lines)
Lines 1-2 Link Here
1
modules/dazuko.ko
2
@dirrmtry modules

Return to bug 94588