about [UPDATING] [MOVED] [vuxml]summaryrefslograw-logtreecommitdiffstats
path: root/net/openafs/Makefile [up]
Last 15 commits to file "net/openafs/Makefile" in the last year: [ Last 15 commits to this file | All commits to this file ]
 
Commit messageAuthorDateFilesLines
* [ file ]Convert USE_FUSE macros into USES feature.7-eolBaptiste Daroussin2013-03-06 16:52:02 +00001-1/+1
* [ file ]- Fix build on 10.0-CURRENT.Hiroki Sato2013-01-04 21:06:25 +00001-7/+2
* [ file ]- introduce a USE_FUSE macroFlorian Smeets2012-12-14 15:47:00 +00001-1/+1
* [ file ]- Update to 1.6.1.Hiroki Sato2012-07-06 03:45:26 +01001-8/+7
* [ file ]-Add patch to compile on 9.x [1]Michael Scheidell2011-12-09 13:10:24 +00001-1/+1
* [ file ]- Unbreak build on 9.0Martin Wilke2011-11-27 08:42:19 +00001-1/+1
* [ file ]- Resolve build failures in 9.0-STABLE and 10-CURRENTRyan Steinmetz2011-10-15 01:37:24 +01001-0/+2
* [ file ]Upgrade to the final OpenAFS 1.6.0 releasePawel Pekala2011-09-19 20:58:16 +01001-3/+3
* [ file ]Apparently 1.6.0.p7.d20110814 < 1.6.0.p7, so cut the 'd' to keep numerical orderChris Rees2011-08-20 16:43:54 +01001-1/+1
* [ file ]Update database version, and ensure they're versioned in future.Chris Rees2011-08-19 18:46:28 +01001-10/+13
* [ file ]Update to 1.6.0pre7Ryan Steinmetz2011-07-19 22:49:20 +01001-3/+8
* [ file ]- Mark CONFLICTS between net/openafs and net/coda6_server: both install sbin/backupSunpoet Po-Chuan Hsieh2011-07-04 03:48:03 +01001-2/+2
* [ file ]- Add directories for mount points and caching.Hiroki Sato2011-06-27 04:33:55 +01001-4/+19
* [ file ]Update to 1.6.0pre6.Hiroki Sato2011-06-20 08:09:36 +01001-36/+31
* [ file ]AFS is a distributed filesystem product, pioneered at Carnegie MellonWesley Shields2011-05-25 01:09:37 +01001-0/+101


commit: (<title> <author> <date> etc.)
blob: e19ac0f8705f9b25412d3abf5ae02f5654ce69ad (plain) (blame)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# $FreeBSD$

PORTNAME=	openafs
DISTVERSION=	${AFS_DISTVERSION}.${DBVERSION:S/-//g}
PORTREVISION=	1
CATEGORIES=	net kld
MASTER_SITES=	http://dl.central.org/dl/openafs/${AFS_DISTVERSION}/:openafs \
		http://dl.openafs.org/dl/openafs/${AFS_DISTVERSION}/:openafs \
		http://dl.central.org/dl/cellservdb/:gco \
		http://grand.central.org/dl/cellservdb/:gco
DISTFILES=	${PORTNAME}-${AFS_DISTVERSION}-src.tar.bz2:openafs \
		${PORTNAME}-${AFS_DISTVERSION}-doc.tar.bz2:openafs \
		CellServDB.${DBVERSION}:gco
EXTRACT_ONLY=	${PORTNAME}-${AFS_DISTVERSION}-src.tar.bz2 \
		${PORTNAME}-${AFS_DISTVERSION}-doc.tar.bz2

MAINTAINER=	bjk@FreeBSD.org
COMMENT=	AFS implementation from openafs.org

LICENSE=	IPLv1
LICENSE_NAME=	IBM Public License Version 1.0
LICENSE_FILE=	${WRKSRC}/doc/LICENSE
LICENSE_PERMS=	auto-accept

AFS_DISTVERSION=	1.6.1
DBVERSION=	2011-08-14

OPTIONS_DEFINE=	FUSE

USE_LDCONFIG=	yes
PATCH_STRIP=	-p1
USE_BZIP2=	yes
HAS_CONFIGURE=	yes
USE_RC_SUBR=	afsd afsserver
MAKE_JOBS_SAFE=	yes

ONLY_FOR_ARCHS=	i386 amd64

AFSMNTDIR?=	/afs
AFSSTATEDIR?=	/var/${PORTNAME}
AFSCACHEDIR?=	${AFSSTATEDIR}/cache
PLIST_SUB+=	AFSMNTDIR=${AFSMNTDIR:C,^/,,} \
		AFSSTATEDIR=${AFSSTATEDIR:C,^/,,} \
		AFSCACHEDIR=${AFSCACHEDIR:C,^/,,}

.include <bsd.port.pre.mk>

KERNCONF?=	GENERIC
KERNCONFDIR?=	${SRC_BASE}/sys/${ARCH}/conf
KMODDIR=	/boot/modules
PLIST_SUB+=	KMODDIR=${KMODDIR:C,^/,,}

# Use the first component of ${KERNCONF}.
.for K in ${KERNCONF}
_KERNCONF?=$K
.endfor

.if !exists(${KERNCONFDIR}/${_KERNCONF})
IGNORE=	requires kernel configuration file ${_KERNCONF} to build
.endif

.if ${OSVERSION} < 800000
IGNORE=	supports FreeBSD 8.0 and later
.endif

CONFIGURE_ARGS=	--prefix=${PREFIX} \
	--localstatedir=/var \
	--mandir=${MANPREFIX}/man \
	--with-bsd-kernel-headers=${SRC_BASE}/sys \
	--with-bsd-kernel-build=${WRKDIR}/conf \
	--enable-debug \
	--enable-debug-kernel \
	--enable-debug-lwp \
	--includedir=${PREFIX}/include/openafs \
	${CONFIGURE_TARGET}

.if ${PORT_OPTIONS:MFUSE}
USES+=		fuse
PLIST_SUB+=	FUSE=""
.else
CONFIGURE_ARGS+=	--disable-fuse-client
PLIST_SUB+=	FUSE="@comment "
.endif

WRKSRC=		${WRKDIR}/${PORTNAME}-${AFS_DISTVERSION}

CONFLICTS=	coda-server-6.[0-9]* heimdal-[0-9]*

.include "Makefile.man"

# Do not show users the reminder about cleandepend and depend
post-extract:
	${MKDIR} ${WRKDIR}/conf
	cd ${KERNCONFDIR} && /usr/sbin/config -d ${WRKDIR}/conf ${_KERNCONF} >/dev/null

create-sample-files:
	@${ECHO_CMD} openafs.org > ${WRKDIR}/ThisCell
	@${ECHO_CMD} "${AFSMNTDIR}:${AFSCACHEDIR}:150000" > ${WRKDIR}/cacheinfo
	@${INSTALL_DATA} ${DISTDIR}/CellServDB.${DBVERSION} ${WRKDIR}/CellServDB

post-install: create-sample-files
	@${MKDIR} ${PREFIX}/etc/openafs
.for F in CellServDB ThisCell cacheinfo
	@${INSTALL_DATA} ${WRKDIR}/${F} ${PREFIX}/etc/openafs/${F}.sample
	@if [ ! -e ${PREFIX}/etc/openafs/${F} ]; then \
		${INSTALL_DATA} ${WRKDIR}/${F} ${PREFIX}/etc/openafs/${F}; \
	fi
.endfor
	${INSTALL_KLD} ${PREFIX}/lib/openafs/libafs.ko ${KMODDIR}/
	@${RM} ${PREFIX}/lib/openafs/libafs.ko
	@${RMDIR} ${PREFIX}/lib/openafs
	${MKDIR} ${AFSMNTDIR} ${AFSSTATEDIR} ${AFSCACHEDIR}
	/usr/sbin/kldxref ${KMODDIR}

.include <bsd.port.post.mk>
This site is maintained by Jamie Landeg-Jones <jamie@catflap.org>, and is not an official FreeBSD project, nor is it endorsed by the FreeBSD team.