mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Puts a web search box in the left frame that can use a variety of
search engines. Currently supported: * Google * Google Adsense for Search * Yahoo! WWW: http://www.squirrelmail.org Approved by: krion (mentor)
This commit is contained in:
parent
c242443a38
commit
e7f286d693
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170294
@ -534,6 +534,7 @@
|
||||
SUBDIR += squirrelmail-secure_login-plugin
|
||||
SUBDIR += squirrelmail-timeout_user-plugin
|
||||
SUBDIR += squirrelmail-vlogin-plugin
|
||||
SUBDIR += squirrelmail-websearch-plugin
|
||||
SUBDIR += squirrelmail-wetteronline-plugin
|
||||
SUBDIR += sqwebmail
|
||||
SUBDIR += ssmtp
|
||||
|
75
mail/squirrelmail-websearch-plugin/Makefile
Normal file
75
mail/squirrelmail-websearch-plugin/Makefile
Normal file
@ -0,0 +1,75 @@
|
||||
# New ports collection makefile for: squirrelmail-websearch-plugin
|
||||
# Date created: 10 August
|
||||
# Whom: Martin Wilke <miwi@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
|
||||
PORTVERSION= 0.1.6
|
||||
CATEGORIES= mail www
|
||||
MASTER_SITES= http://www.squirrelmail.org/plugins/
|
||||
DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}
|
||||
DIST_SUBDIR= squirrelmail
|
||||
|
||||
MAINTAINER= miwi@FreeBSD.org
|
||||
COMMENT= Plugin for Websearch
|
||||
|
||||
RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
|
||||
${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
|
||||
|
||||
SQUIRREL_PLUGIN_NAME= web_search
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
.ifdef SQUIRRELDIR
|
||||
PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
|
||||
SUB_LIST+= "SQUIRRELDIR=${SQUIRRELDIR}"
|
||||
.else
|
||||
. ifndef WITHOUT_WWWDIR
|
||||
SQUIRRELDIR= ${PREFIX}/www/squirrelmail
|
||||
PLIST_SUB+= SQUIRRELDIR=www/squirrelmail
|
||||
SUB_LIST+= "SQUIRRELDIR=www/squirrelmail"
|
||||
. else
|
||||
SQUIRRELDIR= ${PREFIX}/squirrelmail
|
||||
PLIST_SUB+= SQUIRRELDIR=squirrelmail
|
||||
SUB_LIST+= "SQUIRRELDIR=squirrelmail"
|
||||
. endif
|
||||
.endif
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
USE_PERL5_BUILD= yes
|
||||
USE_PHP= yes
|
||||
WANT_PHP_WEB= yes
|
||||
|
||||
pre-everything::
|
||||
@${ECHO} ""
|
||||
.ifndef WITHOUT_ACTIVATE
|
||||
@${ECHO} "Activating plug-in in SquirrelMail after installation."
|
||||
@${ECHO} "If you don't want to automatically activate the plug-in set"
|
||||
@${ECHO} "WITHOUT_ACTIVATE=yes"
|
||||
.else
|
||||
@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
|
||||
@${ECHO} "If you want to automatically activate the plug-in unset"
|
||||
@${ECHO} "WITHOUT_ACTIVATE"
|
||||
.endif
|
||||
@${ECHO} ""
|
||||
|
||||
do-install:
|
||||
${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
|
||||
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
|
||||
|
||||
post-install:
|
||||
.ifndef WITHOUT_ACTIVATE
|
||||
.if exists( ${SQUIRRELDIR}/config/config.php )
|
||||
@${ECHO} "Activating plug-in in SquirrelMail"
|
||||
${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
|
||||
.endif
|
||||
.else
|
||||
@${ECHO} "To activate the plug-in in SquirrelMail use"
|
||||
@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
|
||||
.endif
|
||||
@${ECHO} ""
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
3
mail/squirrelmail-websearch-plugin/distinfo
Normal file
3
mail/squirrelmail-websearch-plugin/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (squirrelmail/web_search-0.1.6.tar.gz) = 71561a5747eecd74adc490595c03d957
|
||||
SHA256 (squirrelmail/web_search-0.1.6.tar.gz) = 30acdcc02ece6b91aea41a3cf0bd5ac125b6dd67118326380ad193ebd80de8de
|
||||
SIZE (squirrelmail/web_search-0.1.6.tar.gz) = 3202
|
5
mail/squirrelmail-websearch-plugin/files/pkg-message.in
Normal file
5
mail/squirrelmail-websearch-plugin/files/pkg-message.in
Normal file
@ -0,0 +1,5 @@
|
||||
For the port to work properly you must copy the file
|
||||
%%PREFIX%%/%%SQUIRRELDIR%%/plugins/web_search/web_search.conf.php.dist
|
||||
to
|
||||
%%PREFIX%%/%%SQUIRRELDIR%%/plugins/web_search/config.php
|
||||
and edit the configuration to meet your needs.
|
8
mail/squirrelmail-websearch-plugin/pkg-descr
Normal file
8
mail/squirrelmail-websearch-plugin/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
Puts a web search box in the left frame that can use a variety of
|
||||
search engines. Currently supported:
|
||||
|
||||
* Google
|
||||
* Google Adsense for Search
|
||||
* Yahoo!
|
||||
|
||||
WWW: http://www.squirrelmail.org
|
9
mail/squirrelmail-websearch-plugin/pkg-plist
Normal file
9
mail/squirrelmail-websearch-plugin/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin web_search; fi
|
||||
%%SQUIRRELDIR%%/plugins/web_search/README
|
||||
%%SQUIRRELDIR%%/plugins/web_search/api.php
|
||||
%%SQUIRRELDIR%%/plugins/web_search/hooks.php
|
||||
%%SQUIRRELDIR%%/plugins/web_search/setup.php
|
||||
%%SQUIRRELDIR%%/plugins/web_search/version
|
||||
%%SQUIRRELDIR%%/plugins/web_search/web_search.conf.php.dist
|
||||
@dirrm %%SQUIRRELDIR%%/plugins/web_search/
|
||||
@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin web_search; fi
|
Loading…
Reference in New Issue
Block a user