diff options
author | schmonz <schmonz@pkgsrc.org> | 2007-06-05 05:56:01 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2007-06-05 05:56:01 +0000 |
commit | 19a2ec0b3af61c9a23938d4ed2d644f716004052 (patch) | |
tree | cd906a3292bdd613b455fb6288c9e94f2c06e37c /mail/freepops | |
parent | 3f6bfafe2bda79ed1a50dbd8ee0d7e98e0f95ff7 (diff) | |
download | pkgsrc-19a2ec0b3af61c9a23938d4ed2d644f716004052.tar.gz |
Initial import of FreePOPs 0.2.4, an extensible POP3 server which
acts as a gateway to a variety of webmail services.
One possible use of this package, which I've tested, is in migrating
from Hotmail (which provides neither mail forwarding nor POP access
to the mailstore) to Gmail (which can act as a POP client).
Diffstat (limited to 'mail/freepops')
-rw-r--r-- | mail/freepops/DESCR | 2 | ||||
-rw-r--r-- | mail/freepops/Makefile | 54 | ||||
-rw-r--r-- | mail/freepops/PLIST | 56 | ||||
-rw-r--r-- | mail/freepops/distinfo | 12 | ||||
-rwxr-xr-x | mail/freepops/files/freepopsd.sh | 22 | ||||
-rw-r--r-- | mail/freepops/patches/patch-aa | 28 | ||||
-rw-r--r-- | mail/freepops/patches/patch-ab | 51 | ||||
-rw-r--r-- | mail/freepops/patches/patch-ac | 26 | ||||
-rw-r--r-- | mail/freepops/patches/patch-ad | 13 | ||||
-rw-r--r-- | mail/freepops/patches/patch-ae | 13 | ||||
-rw-r--r-- | mail/freepops/patches/patch-af | 13 | ||||
-rw-r--r-- | mail/freepops/patches/patch-ag | 13 |
12 files changed, 303 insertions, 0 deletions
diff --git a/mail/freepops/DESCR b/mail/freepops/DESCR new file mode 100644 index 00000000000..298700e79ce --- /dev/null +++ b/mail/freepops/DESCR @@ -0,0 +1,2 @@ +FreePOPs is an extensible POP3 server. Its main purpose is to provide +a POP3 interface to a webmail. diff --git a/mail/freepops/Makefile b/mail/freepops/Makefile new file mode 100644 index 00000000000..54a9750bf4f --- /dev/null +++ b/mail/freepops/Makefile @@ -0,0 +1,54 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ +# + +DISTNAME= freepops-0.2.4 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freepops/} + +MAINTAINER= schmonz@NetBSD.org +HOMEPAGE= http://www.freepops.org/ +COMMENT= Extensible POP3 interface to webmail + +USE_LANGUAGES= c c++ +USE_TOOLS+= bash:run bison gmake patch tar +USE_LIBTOOL= yes +REPLACE_BASH= configure.sh +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= configure.sh +CONFIGURE_ARGS= pkgsrc + +PKG_SYSCONFSUBDIR= freepops +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +CONF_FILES= ${EGDIR}/config.lua ${PKG_SYSCONFDIR}/config.lua +OWN_DIRS+= ${VARBASE}/lib/${PKGBASE}/lua_unofficial +OWN_DIRS+= ${VARBASE}/lib/${PKGBASE}/lua_updates +OWN_DIRS+= ${VARBASE}/lib/${PKGBASE}/lua_updates/lxp +OWN_DIRS+= ${VARBASE}/lib/${PKGBASE}/lua_updates/browser +OWN_DIRS+= ${VARBASE}/lib/${PKGBASE}/lua_updates/soap + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= do-configure +SUBST_FILES.paths= config.h doc/freepopsd.1 src/freepops.h +SUBST_FILES.paths+= src/lua/freepops.lua +SUBST_SED.paths= -e 's|@PREFIX@|${PREFIX}|g' +SUBST_SED.paths+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' +SUBST_SED.paths+= -e 's|@VARBASE@|${VARBASE}|g' +SUBST_MESSAGE.paths= Adjusting paths. + +BUILD_DEFS+= VARBASE + +.include "../../mk/bsd.prefs.mk" + +RCD_SCRIPTS= freepopsd +FREEPOPSD_USER?= freepops +FREEPOPSD_GROUP?= freepops +PKG_GROUPS= ${FREEPOPSD_GROUP} +PKG_USERS= ${FREEPOPSD_USER}:${FREEPOPSD_GROUP} +PKG_GECOS.${FREEPOPSD_USER}= freepopsd POP3 user +FILES_SUBST+= FREEPOPSD_USER=${FREEPOPSD_USER:Q} +FILES_SUBST+= FREEPOPSD_GROUP=${FREEPOPSD_GROUP:Q} + +.include "../../security/openssl/buildlink3.mk" +.include "../../textproc/expat/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/freepops/PLIST b/mail/freepops/PLIST new file mode 100644 index 00000000000..f5ad7bd6945 --- /dev/null +++ b/mail/freepops/PLIST @@ -0,0 +1,56 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ +bin/freepopsd +man/man1/freepopsd.1 +share/doc/freepops/MANUAL.txt +share/examples/freepops/config.lua +share/examples/rc.d/freepopsd +share/freepops/lua/aggregator.lua +share/freepops/lua/aol.lua +share/freepops/lua/browser/browser.lua +share/freepops/lua/browser/cookie.lua +share/freepops/lua/common.lua +share/freepops/lua/config.lua +share/freepops/lua/criticalpath.lua +share/freepops/lua/davmail.lua +share/freepops/lua/fastmail.lua +share/freepops/lua/flatnuke.lua +share/freepops/lua/foo.lua +share/freepops/lua/freepops.lua +share/freepops/lua/gmail.lua +share/freepops/lua/hotmail.lua +share/freepops/lua/httpmail.lua +share/freepops/lua/juno.lua +share/freepops/lua/kernel.lua +share/freepops/lua/libero.lua +share/freepops/lua/lxp/lom.lua +share/freepops/lua/lycos.lua +share/freepops/lua/mail2world.lua +share/freepops/lua/mailcom.lua +share/freepops/lua/mimer.lua +share/freepops/lua/netscape.lua +share/freepops/lua/plugins2xml.lua +share/freepops/lua/popforward.lua +share/freepops/lua/serial.lua +share/freepops/lua/skeleton.lua +share/freepops/lua/soap/http.lua +share/freepops/lua/soap/soap.lua +share/freepops/lua/squirrelmail.lua +share/freepops/lua/supereva.lua +share/freepops/lua/support.lua +share/freepops/lua/table2xml.lua +share/freepops/lua/tin.lua +share/freepops/lua/tre.lua +share/freepops/lua/updater.lua +share/freepops/lua/updater_common.lua +share/freepops/lua/updater_php.lua +share/freepops/lua/version_comparer.lua +share/freepops/lua/xml2table.lua +share/freepops/lua/xml2tex.lua +share/freepops/lua/yahoo.lua +@dirrm share/freepops/lua/soap +@dirrm share/freepops/lua/lxp +@dirrm share/freepops/lua/browser +@dirrm share/freepops/lua +@dirrm share/freepops +@dirrm share/examples/freepops +@dirrm share/doc/freepops diff --git a/mail/freepops/distinfo b/mail/freepops/distinfo new file mode 100644 index 00000000000..fcf8859e7bf --- /dev/null +++ b/mail/freepops/distinfo @@ -0,0 +1,12 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +SHA1 (freepops-0.2.4.tar.gz) = b89d3aa546922f33a24bbc5a93c451c3b9d5ed0d +RMD160 (freepops-0.2.4.tar.gz) = 1e971c5bcbe87e66e80d0c7ef64b165e5f4587e0 +Size (freepops-0.2.4.tar.gz) = 1889995 bytes +SHA1 (patch-aa) = 459bf5a2f0f73ee4c7722c84d4f7f8445843a1de +SHA1 (patch-ab) = e26c06b7d220cf8b7b86f53958f5be784e70c59b +SHA1 (patch-ac) = cb40726dac6fa0e5dc993c8745df41b15044b90f +SHA1 (patch-ad) = 8dbf4703ad2ec63b3ddce0f83e7b627deb92ee7f +SHA1 (patch-ae) = 62468b14d55fdfa7b800daab232c7d22724ec4dc +SHA1 (patch-af) = ae69bfab40ea29dc87dfcaff119ad8ed88e97e2e +SHA1 (patch-ag) = 57fb39d4def6484e28a457b8ebe3508f96851307 diff --git a/mail/freepops/files/freepopsd.sh b/mail/freepops/files/freepopsd.sh new file mode 100755 index 00000000000..d8cce1a489a --- /dev/null +++ b/mail/freepops/files/freepopsd.sh @@ -0,0 +1,22 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: freepopsd.sh,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ +# + +# PROVIDE: freepopsd +# REQUIRE: DAEMON LOGIN + +# User-settable rc.conf variables and their default values: +: ${freepopsd_flags:="-l syslog -p 110"} + +. /etc/rc.subr + +name="freepopsd" +rcvar=$name +command="@PREFIX@/bin/${name}" +command_args="-d -s @FREEPOPSD_USER@.@FREEPOPSD_GROUP@" +pidfile="@VARBASE@/run/${name}.pid" +required_files="@PKG_SYSCONFDIR@/config.lua" + +load_rc_config $name +run_rc_command "$1" diff --git a/mail/freepops/patches/patch-aa b/mail/freepops/patches/patch-aa new file mode 100644 index 00000000000..db1491d0f17 --- /dev/null +++ b/mail/freepops/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +--- configure.sh.orig 2007-04-23 16:53:30.000000000 -0400 ++++ configure.sh +@@ -76,6 +76,13 @@ LUAFLAGS=${LUAFLAGS:-""} + LIBEXPAT_STATIC_PATH=${LIBEXPAT_STATIC_PATH:-$PWD/../lib/lib/} + } + ++set_pkgsrc() { ++set_default ++OS=${OPSYS}-pkgsrc ++WHERE=${PREFIX}/ ++CFLAGS="${CFLAGS} -Wall -DHAVE_CONFIG_H -I$PWD" ++} ++ + set_linux() { + set_default + OS=Linux +@@ -304,6 +311,9 @@ case $1 in + usage + exit 1 + ;; ++ pkgsrc) ++ set_pkgsrc ++ ;; + linux) + set_linux + ;; diff --git a/mail/freepops/patches/patch-ab b/mail/freepops/patches/patch-ab new file mode 100644 index 00000000000..a2322dc3efc --- /dev/null +++ b/mail/freepops/patches/patch-ab @@ -0,0 +1,51 @@ +$NetBSD: patch-ab,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +--- Makefile.orig 2007-05-26 06:18:56.000000000 -0400 ++++ Makefile +@@ -60,26 +60,19 @@ install: all + $(H)mkdir -p $(PREFIX) + $(H)mkdir -p $(PREFIX)bin + $(H)mkdir -p $(PREFIX)share/freepops/lua/ +- $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_unofficial/ +- $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/ + $(H)mkdir -p $(PREFIX)share/doc/freepops/ +- $(H)mkdir -p $(PREFIX)share/man/man1/ +- $(H)mkdir -p $(DESTDIR)etc/freepops ++ $(H)mkdir -p $(PREFIX)$(PKGMANDIR)/man1/ ++ $(H)mkdir -p $(PREFIX)share/examples/freepops/ + $(H)if [ ! -z "$(FLTKUI)" ]; then \ + mkdir -p $(PREFIX)lib/freepops/; \ + cp updater-ui/fltk/updater_fltk$(SHAREDEXTENSION) \ + $(PREFIX)lib/freepops/; \ + cp updater-ui/fltk/freepops-updater-fltk $(PREFIX)bin; \ + fi +- $(H)cp updater-ui/dialog/freepops-updater-dialog $(PREFIX)bin +- $(H)chmod a+rx $(PREFIX)bin/freepops-updater-dialog + $(H)cp src/freepopsd$(EXEEXTENSION) $(PREFIX)bin + $(H)cp src/lua/*.lua modules/include/*.lua config.lua \ + $(PREFIX)share/freepops/lua/ + # keep these in sync with win32 installer +- $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/lxp +- $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/browser +- $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/soap + $(H)mkdir -p $(PREFIX)share/freepops/lua/lxp/ + $(H)mkdir -p $(PREFIX)share/freepops/lua/browser/ + $(H)mkdir -p $(PREFIX)share/freepops/lua/soap/ +@@ -98,14 +91,12 @@ install: all + cp $$X $(PREFIX)share/freepops/lua/soap/; \ + done; \ + fi +- $(H)cp doc/freepopsd.1 $(PREFIX)share/man/man1/ +- $(H)cp doc/freepops-updater-dialog.1 $(PREFIX)share/man/man1/ ++ $(H)cp doc/freepopsd.1 $(PREFIX)$(PKGMANDIR)/man1/ + $(H)if [ ! -z "$(FLTKUI)" ]; then \ +- cp doc/freepops-updater-fltk.1 $(PREFIX)share/man/man1/;\ ++ cp doc/freepops-updater-fltk.1 $(PREFIX)$(PKGMANDIR)/man1/;\ + fi +- $(H)cp doc/manual*.pdf $(PREFIX)share/doc/freepops/ || true + $(H)cp doc/MANUAL.txt $(PREFIX)share/doc/freepops/ || true +- $(H)cp config.lua $(DESTDIR)etc/freepops/ ++ $(H)cp config.lua $(PREFIX)/share/examples/freepops/ + + uninstall: + $(H)rm -f $(DESTDIR)etc/freepops/config.lua diff --git a/mail/freepops/patches/patch-ac b/mail/freepops/patches/patch-ac new file mode 100644 index 00000000000..a1ebfa0de3e --- /dev/null +++ b/mail/freepops/patches/patch-ac @@ -0,0 +1,26 @@ +$NetBSD: patch-ac,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +--- doc/freepopsd.1.orig 2007-01-14 09:37:30.000000000 -0500 ++++ doc/freepopsd.1 +@@ -54,7 +54,7 @@ a valid filename to log to this file. + Moves the process to background releasing the tty + .TP + \fB \-n\fR, \fB\-\-no-pid-file +-Don't create the pid file containing the process id in /var/run/. ++Don't create the pid file containing the process id in @VARBASE@/run/. + .TP + \fB \-P \fRproxyaddress:proxyport, \fB\-\-proxy \fRproxyaddress:proxyport + You can specify the http proxy name and port separated by :. +@@ -114,10 +114,10 @@ Prints the program version. + .\"sense only in a lan-wide installation. + .SH FILES + .TP +-.I /usr/share/frepops/lua/* ++.I @PREFIX@/share/freepops/lua/* + Webmails access implementation + .TP +-.I /etc/freepops/config.lua ++.I @PKG_SYSCONFDIR@/config.lua + Configuration file, interesting only for paths, addresses to modules binding, + and accept/reject policy on mail addresses + \".TP diff --git a/mail/freepops/patches/patch-ad b/mail/freepops/patches/patch-ad new file mode 100644 index 00000000000..92bcf533a3a --- /dev/null +++ b/mail/freepops/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +--- src/lua/freepops.lua.orig 2007-03-24 13:19:24.000000000 -0400 ++++ src/lua/freepops.lua +@@ -64,7 +64,7 @@ local __loadfile = loadfile + local function load_config() + + local paths = { +- "/etc/freepops/", ++ "@PKG_SYSCONFDIR@/", + "./", + os.getenv("FREEPOPSLUA_PATH") or "./" , + } diff --git a/mail/freepops/patches/patch-ae b/mail/freepops/patches/patch-ae new file mode 100644 index 00000000000..a81fa6f8dd5 --- /dev/null +++ b/mail/freepops/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +--- src/freepops.h.orig 2007-01-14 09:37:30.000000000 -0500 ++++ src/freepops.h +@@ -50,7 +50,7 @@ extern char *configfile; + #ifdef WIN32 + #define FREEPOPS_SHARE "./" + #else +-#define FREEPOPS_SHARE "/usr/share/freepops/" ++#define FREEPOPS_SHARE "@PREFIX@/share/freepops/" + #endif + + #endif diff --git a/mail/freepops/patches/patch-af b/mail/freepops/patches/patch-af new file mode 100644 index 00000000000..2b4c6f94a65 --- /dev/null +++ b/mail/freepops/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +--- config.h.orig 2007-05-26 06:02:06.000000000 -0400 ++++ config.h +@@ -16,7 +16,7 @@ + // common + #define VERSION "0.2.4" + #define PROGRAMNAME "FreePOPs" +-#define PIDFILE "/var/run/freepopsd.pid" ++#define PIDFILE "@VARBASE@/run/freepopsd.pid" + #define POP3PORT 2000 + #define MAXTHREADS 5 + diff --git a/mail/freepops/patches/patch-ag b/mail/freepops/patches/patch-ag new file mode 100644 index 00000000000..d5b6089a900 --- /dev/null +++ b/mail/freepops/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1.1.1 2007/06/05 05:56:01 schmonz Exp $ + +--- src/Makefile.orig 2007-04-23 17:17:37.000000000 -0400 ++++ src/Makefile +@@ -174,7 +174,7 @@ ifeq "$(OS)" "BeOS" + else + ifeq "$(SSL)" "openssl" + LDFLAGS+=-L ../modules/lib $(addprefix -l,$(LIBSTOLINK))\ +- -ldl -lm -lpthread -lcrypto -rdynamic \ ++ -lm -lpthread -lcrypto \ + $(CURL_LD_FLAGS) $(EXPAT_LD_FLAGS) + else + LDFLAGS+=-L ../modules/lib $(addprefix -l,$(LIBSTOLINK))\ |