summaryrefslogtreecommitdiff
path: root/sysutils/xsu/Makefile
blob: 4ced6fe3d2740759d9eefb3e1b34a0e38dcb49f6 (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
# Created by: Juan Salaverria <rael@vectorstar.net>
# $FreeBSD$

PORTNAME=	xsu
PORTVERSION=	0.2.4
PORTREVISION=	6
CATEGORIES=	sysutils gnome
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Xsu runs commands as root after prompting for the root password

GNU_CONFIGURE=	yes
USES=        pathfix
USE_GNOME=	gnomeprefix gnomelibs
CONFIGURE_ARGS=	--su-pwd-out="Password:"
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+=	-I${LOCALBASE}/include

MAN8=	xsu.8

DOCS=	CHANGELOG COPYING INSTALL

NO_STAGE=	yes
post-patch:
.ifdef NOPORTDOCS
	${REINPLACE_CMD} -e '/doc_path\/$$name/s,^[[:blank:]],#&,' \
		-e '/@echo "Now read the README file"/s,^[[:blank:]],#&,' \
		${WRKSRC}/configure
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/xsu.desktop \
		${PREFIX}/share/gnome/apps/System
.if !defined(NOPORTDOCS)
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>