blob: 0aaf9d5eabb714ca4c312511f9292a4d2bee09fd (
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
|
# New ports collection makefile for: gnome-screensaver
# Date created: 09 June 2005
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/x11/gnome-screensaver3/Makefile,v 1.18 2011/09/17 21:24:19 kwm Exp $
#
PORTNAME= gnome-screensaver
PORTVERSION= 3.1.92
CATEGORIES= x11 gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME screen saver and locker
BUILD_DEPENDS= gsettings-desktop-schemas>=3.1.90:${PORTSDIR}/devel/gsettings-desktop-schemas
LIB_DEPENDS= notify.4:${PORTSDIR}/devel/libnotify \
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS= pam_helper:${PORTSDIR}/security/pam_helper \
gsettings-desktop-schemas>=3.1.90:${PORTSDIR}/devel/gsettings-desktop-schemas \
${LOCALBASE}/lib/pam_gnome_keyring.so:${PORTSDIR}/security/gnome-keyring3
CONFLICTS= gnome-screensaver-2.[0-9]*
LATEST_LINK= gnome-screensaver3
USE_XZ= yes
USE_GMAKE= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
USE_XORG= x11 xext xxf86vm xxf86misc xscrnsaver
USE_GNOME= gnomeprefix gnomehack intlhack libgnomekbd3 gnomedesktop3
CPPFLAGS= -I${LOCALBASE}/include
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-pam-prefix=${PREFIX}/etc/pam.d
MAN1= gnome-screensaver-command.1 gnome-screensaver.1
SUB_FILES+= gnome-screensaver.pam
post-patch:
@${REINPLACE_CMD} -e 's|/etc/pam.d|${PREFIX}/etc/pam.d|g' \
${WRKSRC}/src/gs-auth-pam.c
@${REINPLACE_CMD} -e 's|gs-auth-pam.|gs-auth-helper.|g' \
${WRKSRC}/src/Makefile.in
@${ECHO} "#define PASSWD_HELPER_PROGRAM \"/usr/local/bin/pam_helper\"" \
>> ${WRKSRC}/config.h.in
#pre-install:
# @${CAT} ${.CURDIR}/pkg-plist > ${PLIST}
# @cd ${XSCREENSAVER_DIR} && ${FIND} -s * -maxdepth 1 -type f -name "*.xml" | \
# ${GREP} -Ev ${XSCREENSAVER_EXCLUDE} | \
# ${SED} -e 's:^:${SCREENSAVER_DIR}/:' | \
# ${SED} -e 's:[.]xml$$:.desktop:' >> ${PLIST}
# @${ECHO_CMD} @dirrm ${SCREENSAVER_DIR} >> ${PLIST}
post-install:
${CHOWN} root ${PREFIX}/libexec/gnome-screensaver-dialog
${CHMOD} +s ${PREFIX}/libexec/gnome-screensaver-dialog
# ${MKDIR} ${PREFIX}/${SCREENSAVER_DIR}
# cd ${PREFIX}/${SCREENSAVER_DIR} && \
# ${FIND} -s ${XSCREENSAVER_DIR} -maxdepth 1 -type f -name "*.xml" | \
# ${GREP} -Ev ${XSCREENSAVER_EXCLUDE} | \
# ${XARGS} ${WRKSRC}/data/migrate-xscreensaver-config.sh
${INSTALL_DATA} ${WRKDIR}/gnome-screensaver.pam \
${PREFIX}/etc/pam.d/gnome-screensaver
.include <bsd.port.mk>
|