aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xfsprogs/Makefile
blob: e7b5952839855626e4906ae97a5b30aed8c4b1d9 (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
PORTNAME=	xfsprogs
DISTVERSION=	3.2.4
PORTREVISION=	4
CATEGORIES=	sysutils
MASTER_SITES=	ftp://oss.sgi.com/projects/xfs/cmd_tars/ \
		ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Utilities for managing XFS filesystems
WWW=		http://oss.sgi.com/projects/xfs/

LICENSE=	LGPL21 GPLv2
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/doc/COPYING

USES=		cpe gettext gmake libtool:build readline
CPE_VENDOR=	sgi
CPE_PRODUCT=	${PORTNAME}
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
CONFIGURE_ENV=	OPTIMIZER=-fcommon
CONFIGURE_ARGS=	--disable-shared --enable-readline
ALL_TARGET=	# empty
MAKE_ARGS=	V=1

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/utmp/d' \
		${WRKSRC}/quota/report.c ${WRKSRC}/quota/util.c
	@${REINPLACE_CMD} \
		-e 's|/usr/local|${LOCALBASE}|g' \
		-e 's/lio_listio/timer_create/' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e '/#!/s|bash|sh|' \
		${WRKSRC}/include/install-sh ${WRKSRC}/install-sh

post-install:
.for f in mkfs.xfs xfs_copy xfs_db xfs_estimate xfs_fsr xfs_growfs xfs_io \
     xfs_logprint xfs_mdrestore xfs_quota xfs_repair xfs_rtcp
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${f}
.endfor

.include <bsd.port.mk>