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).
This commit is contained in:
parent
3f6bfafe2b
commit
19a2ec0b3a
12 changed files with 303 additions and 0 deletions
2
mail/freepops/DESCR
Normal file
2
mail/freepops/DESCR
Normal file
|
@ -0,0 +1,2 @@
|
|||
FreePOPs is an extensible POP3 server. Its main purpose is to provide
|
||||
a POP3 interface to a webmail.
|
54
mail/freepops/Makefile
Normal file
54
mail/freepops/Makefile
Normal file
|
@ -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"
|
56
mail/freepops/PLIST
Normal file
56
mail/freepops/PLIST
Normal file
|
@ -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
|
12
mail/freepops/distinfo
Normal file
12
mail/freepops/distinfo
Normal file
|
@ -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
|
22
mail/freepops/files/freepopsd.sh
Executable file
22
mail/freepops/files/freepopsd.sh
Executable file
|
@ -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"
|
28
mail/freepops/patches/patch-aa
Normal file
28
mail/freepops/patches/patch-aa
Normal file
|
@ -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
|
||||
;;
|
51
mail/freepops/patches/patch-ab
Normal file
51
mail/freepops/patches/patch-ab
Normal file
|
@ -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
|
26
mail/freepops/patches/patch-ac
Normal file
26
mail/freepops/patches/patch-ac
Normal file
|
@ -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
|
13
mail/freepops/patches/patch-ad
Normal file
13
mail/freepops/patches/patch-ad
Normal file
|
@ -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 "./" ,
|
||||
}
|
13
mail/freepops/patches/patch-ae
Normal file
13
mail/freepops/patches/patch-ae
Normal file
|
@ -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
|
13
mail/freepops/patches/patch-af
Normal file
13
mail/freepops/patches/patch-af
Normal file
|
@ -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
|
||||
|
13
mail/freepops/patches/patch-ag
Normal file
13
mail/freepops/patches/patch-ag
Normal file
|
@ -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))\
|
Loading…
Reference in a new issue