summaryrefslogtreecommitdiff
path: root/security/sfs/Makefile
blob: 7486876c7195e9f766d9bdb09655282efccc3239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $NetBSD: Makefile,v 1.3 2003/03/25 06:45:00 lukem Exp $
#

DISTNAME=		sfs-0.7.2
PKGREVISION=		2
CATEGORIES=		net security
MASTER_SITES=		http://www.fs.net/sfs/@new-york.lcs.mit.edu,u83s4uk49nt8rmp4uwmt2exvz6d3cavh/pub/sfswww/dist/

MAINTAINER=		mike@ethmoid.org
HOMEPAGE=		http://www.fs.net/
COMMENT=		Secure, global, self-certifying network file system

GNU_CONFIGURE=		yes

CONFIGURE_ARGS+=	--with-sfsuser=sfs
CONFIGURE_ARGS+=	--with-sfsgroup=sfs
CONFIGURE_ARGS+=	--with-etcdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--with-sfsdir=${SFS_ROOT}
CONFIGURE_ARGS+=	--disable-uvfs

USE_PKGINSTALL=		yes
USE_BUILDLINK2=		yes
USE_PERL5=		yes

DIST_GCC=		2.95.3

PKG_USERS=		sfs:sfs::Self-certifying\\ file\\ system:/
PKG_GROUPS=		sfs
PKG_SYSCONFSUBDIR=	sfs

.include "../../mk/bsd.prefs.mk"

SFSDIR?=		/var/sfs
SFS_ROOT=		${SFSDIR}

OWN_DIRS_PERMS=		${SFS_ROOT} sfs sfs 555

SFSEXAMPLEDIR=		${PREFIX}/share/examples/sfs

MESSAGE_SUBST+=		SFSDIR=${SFS_ROOT} SFSEXAMPLEDIR=${SFSEXAMPLEDIR}

INFO_FILES=		sfs.info

post-install:
	@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/sfscd \
		> ${PREFIX}/etc/rc.d/sfscd
	@${CHMOD} +x ${PREFIX}/etc/rc.d/sfscd
	@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/sfssd \
		> ${PREFIX}/etc/rc.d/sfssd
	@${CHMOD} +x ${PREFIX}/etc/rc.d/sfssd
	${INSTALL_DATA_DIR} ${SFSEXAMPLEDIR}
	@${SED} -e 's|@SFSDIR@|${SFS_ROOT}|g' ${FILESDIR}/sfsrwsd_config.sample \
		> ${SFSEXAMPLEDIR}/sfsrwsd_config.sample

.include "../../devel/gmp/buildlink2.mk"
.include "../../lang/gcc/buildlink2.mk"
.include "../../security/openssl/buildlink2.mk"

.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"