View | Details | Raw Unified | Return to bug 124268
Collapse All | Expand All

(-)Makefile (-69 / +19 lines)
Lines 4-75 Link Here
4
#
4
#
5
# $FreeBSD: ports/mail/squirrelmail-login_notes-plugin/Makefile,v 1.2 2006/09/08 18:07:58 itetcu Exp $
5
# $FreeBSD: ports/mail/squirrelmail-login_notes-plugin/Makefile,v 1.2 2006/09/08 18:07:58 itetcu Exp $
6
6
7
PORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
7
PORTNAME=	login_notes
8
PORTVERSION=		1.1
8
PORTVERSION=	1.2
9
CATEGORIES=		mail www
9
CATEGORIES=	mail www
10
MASTER_SITES=		http://www.squirrelmail.org/plugins/
10
MASTER_SITES=	http://www.squirrelmail.org/plugins/
11
DISTNAME=		${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.4.0
11
PKGNAMEPREFIX=	squirrelmail-
12
DIST_SUBDIR=		squirrelmail
12
PKGNAMESUFFIX=	-plugin
13
13
DISTNAME=	${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.4.0
14
MAINTAINER=		gerrit.beine@gmx.de
14
DIST_SUBDIR=	squirrelmail
15
COMMENT=		Place notes on the login screen
15
16
16
MAINTAINER=	gerrit.beine@gmx.de
17
RUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
17
COMMENT=	Place notes on the login screen
18
			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
18
19
19
RUN_DEPENDS=	${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
20
SQUIRREL_PLUGIN_NAME=	login_notes
20
21
21
SUB_FILES=	pkg-message
22
.ifdef SQUIRRELDIR
22
23
PLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
23
.include <bsd.port.pre.mk>
24
SUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
24
.include "${PORTSDIR}/mail/squirrelmail/bsd.squirrelmail.mk"
25
.else
25
.include <bsd.port.post.mk>
26
.	ifndef WITHOUT_WWWDIR
27
SQUIRRELDIR=		${PREFIX}/www/squirrelmail
28
PLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
29
SUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
30
.	else
31
SQUIRRELDIR=		${PREFIX}/squirrelmail
32
PLIST_SUB+=		SQUIRRELDIR=squirrelmail
33
SUB_LIST+=		"SQUIRRELDIR=squirrelmail"
34
.	endif
35
.endif
36
37
SUB_FILES=		pkg-message
38
39
NO_BUILD=		yes
40
NO_WRKSUBDIR=		yes
41
USE_PERL5_BUILD=	yes
42
USE_PHP=		yes
43
WANT_PHP_WEB=		yes
44
45
pre-everything::
46
	@${ECHO} ""
47
.ifndef WITHOUT_ACTIVATE
48
	@${ECHO} "Activating plug-in in SquirrelMail after installation."
49
	@${ECHO} "If you don't want to automatically activate the plug-in set"
50
	@${ECHO} "WITHOUT_ACTIVATE=yes"
51
.else
52
	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
53
	@${ECHO} "If you want to automatically activate the plug-in unset"
54
	@${ECHO} "WITHOUT_ACTIVATE"
55
.endif
56
	@${ECHO} ""
57
58
do-install:
59
	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
60
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
61
62
post-install:
63
.ifndef WITHOUT_ACTIVATE
64
.if exists( ${SQUIRRELDIR}/config/config.php )
65
	@${ECHO} "Activating plug-in in SquirrelMail"
66
	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
67
.endif
68
.else
69
	@${ECHO} "To activate the plug-in in SquirrelMail use"
70
	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
71
.endif
72
	@${ECHO} ""
73
	@${CAT} ${PKGMESSAGE}
74
75
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (squirrelmail/login_notes-1.1-1.4.0.tar.gz) = b6fe516931123230d3fb960803338a20
1
MD5 (squirrelmail/login_notes-1.2-1.4.0.tar.gz) = a1e372b8eda352887ca9fe93a9384038
2
SHA256 (squirrelmail/login_notes-1.1-1.4.0.tar.gz) = d53e8593e52e2053bde50f89356ed80ac3a31a7fff9761c5281cb52ad2fccef1
2
SHA256 (squirrelmail/login_notes-1.2-1.4.0.tar.gz) = 3f44b6246528fb65962f1e988b2b7a57d986c818a4ed298dd7aff0d5382bf829
3
SIZE (squirrelmail/login_notes-1.1-1.4.0.tar.gz) = 8200
3
SIZE (squirrelmail/login_notes-1.2-1.4.0.tar.gz) = 11949
(-)pkg-plist (-1 / +9 lines)
Lines 2-10 Link Here
2
%%SQUIRRELDIR%%/plugins/login_notes/COPYING
2
%%SQUIRRELDIR%%/plugins/login_notes/COPYING
3
%%SQUIRRELDIR%%/plugins/login_notes/INSTALL
3
%%SQUIRRELDIR%%/plugins/login_notes/INSTALL
4
%%SQUIRRELDIR%%/plugins/login_notes/README
4
%%SQUIRRELDIR%%/plugins/login_notes/README
5
%%SQUIRRELDIR%%/plugins/login_notes/config.php.sample
5
%%SQUIRRELDIR%%/plugins/login_notes/config.sample.php
6
%%SQUIRRELDIR%%/plugins/login_notes/functions.php
6
%%SQUIRRELDIR%%/plugins/login_notes/functions.php
7
%%SQUIRRELDIR%%/plugins/login_notes/index.php
7
%%SQUIRRELDIR%%/plugins/login_notes/index.php
8
%%SQUIRRELDIR%%/plugins/login_notes/make_release.sh
8
%%SQUIRRELDIR%%/plugins/login_notes/setup.php
9
%%SQUIRRELDIR%%/plugins/login_notes/setup.php
10
%%SQUIRRELDIR%%/plugins/login_notes/version
11
%%SQUIRRELDIR%%/plugins/login_notes/templates/index.php
12
%%SQUIRRELDIR%%/plugins/login_notes/templates/default/index.php
13
%%SQUIRRELDIR%%/plugins/login_notes/templates/default/top_notes.tpl
14
%%SQUIRRELDIR%%/plugins/login_notes/templates/default/bottom_notes.tpl
15
@dirrm %%SQUIRRELDIR%%/plugins/login_notes/templates/default
16
@dirrm %%SQUIRRELDIR%%/plugins/login_notes/templates/
9
@dirrmtry %%SQUIRRELDIR%%/plugins/login_notes/
17
@dirrmtry %%SQUIRRELDIR%%/plugins/login_notes/
10
@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin login_notes; fi
18
@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin login_notes; fi
(-)files/pkg-message.in (-1 / +1 lines)
Lines 1-5 Link Here
1
For the port to work properly you must copy the file
1
For the port to work properly you must copy the file
2
%%PREFIX%%/%%SQUIRRELDIR%%/plugins/login_notes/config.php.sample
2
%%PREFIX%%/%%SQUIRRELDIR%%/plugins/login_notes/config.sample.php
3
to
3
to
4
%%PREFIX%%/%%SQUIRRELDIR%%/plugins/login_notes/config.php
4
%%PREFIX%%/%%SQUIRRELDIR%%/plugins/login_notes/config.php
5
and edit the configuration to meet your needs.
5
and edit the configuration to meet your needs.

Return to bug 124268