Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imapfilter: initial package for imapfilter v2.6.16 #3836

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions cross/imapfilter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
PKG_NAME = imapfilter
PKG_VERS = 2.7.5
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/lefcha/$(PKG_NAME)/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
VanStratum marked this conversation as resolved.
Show resolved Hide resolved

DEPENDS = cross/openssl cross/lua cross/pcre2

HOMEPAGE = http://github.com/lefcha/imapfilter
COMMENT = An IMAP mail filtering utility using the Lua programming language as a configuration and extension language.
LICENSE = MIT

CONFIGURE_TARGET = nop
INSTALL_TARGET = imapfilter_install

include ../../mk/spksrc.archs.mk

ifeq ($(findstring $(ARCH),$(OLD_PPC_ARCHS)),$(ARCH))
# PPC_ARCHES except QorIQ
ADDITIONAL_CPPFLAGS = -DLUA_32BITS
endif

include ../../mk/spksrc.cross-cc.mk

.PHONY: imapfilter_install
imapfilter_install:
@$(RUN) ; cd src && $(MAKE) install DESTDIR=$(INSTALL_DIR) PREFIX=$(INSTALL_PREFIX)
mkdir -p $(INSTALL_DIR)/$(INSTALL_PREFIX)/var
@$(RUN) ; cp samples/*.lua $(INSTALL_DIR)/$(INSTALL_PREFIX)/var/
11 changes: 11 additions & 0 deletions cross/imapfilter/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bin:bin/imapfilter
rsc:share/imapfilter/account.lua
rsc:share/imapfilter/auxiliary.lua
rsc:share/imapfilter/common.lua
rsc:share/imapfilter/mailbox.lua
rsc:share/imapfilter/message.lua
rsc:share/imapfilter/options.lua
rsc:share/imapfilter/regex.lua
rsc:share/imapfilter/set.lua
rsc:var/config.lua
rsc:var/extend.lua
3 changes: 3 additions & 0 deletions cross/imapfilter/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
imapfilter-2.7.5.tar.gz SHA1 5c59977e52b290ca30c24017a22a2d601f8758be
imapfilter-2.7.5.tar.gz SHA256 ab19f840712e6951e51c29e44c43b3b2fa42e93693f98f8969cc763a4fad56bf
imapfilter-2.7.5.tar.gz MD5 94b50ef0297d613e55fd6afc2bffe9a4
17 changes: 17 additions & 0 deletions cross/imapfilter/patches/001-not-overwrite-flags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- src/Makefile
+++ src/Makefile
@@ -19,12 +19,12 @@ LIBPCRE = -lpcre
LIBSSL = -lssl
LIBCRYPTO = -lcrypto

-CFLAGS = -Wall -Wextra -O \
+CFLAGS += -Wall -Wextra -O \
-DCONFIG_SHAREDIR='"$(SHAREDIR)"' \
-DCONFIG_SSL_CAPATH='"$(SSLCAPATH)"' \
-DCONFIG_SSL_CAFILE='"$(SSLCAFILE)"' \
$(INCDIRS) $(MYCFLAGS)
-LDFLAGS = $(LIBDIRS) $(MYLDFLAGS)
+LDFLAGS += $(LIBDIRS) $(MYLDFLAGS)
LIBS = -lm -ldl $(LIBLUA) $(LIBPCRE) $(LIBSSL) $(LIBCRYPTO) $(MYLIBS)

MAN1 = imapfilter.1
18 changes: 18 additions & 0 deletions diyspk/imapfilter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
SPK_NAME = imapfilter
SPK_VERS = 2.7.5
SPK_REV = 1

DEPENDS = cross/$(SPK_NAME)

MAINTAINER = VanStratum
DESCRIPTION = An IMAP mail filtering utility using the Lua programming language as a configuration and extension language.
STARTABLE = no
DISPLAY_NAME = IMAPFilter

HOMEPAGE = http://github.com/lefcha/imapfilter
LICENSE = MIT

SPK_COMMANDS = bin/imapfilter
SPK_LINKS = /usr/local/share/imapfilter:share/imapfilter

include ../../mk/spksrc.spk.mk
Empty file added diyspk/imapfilter/PLIST
Empty file.
10 changes: 7 additions & 3 deletions spk/synocli-net/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
SPK_NAME = synocli-net
SPK_VERS = 2.0
SPK_REV = 10
SPK_REV = 11
SPK_ICON = src/synocli-net.png

DEPENDS = cross/screen cross/tmux cross/nmap cross/links cross/socat
DEPENDS += cross/rsync cross/autossh cross/arp-scan
DEPENDS += cross/mtr
DEPENDS += cross/etherwake
DEPENDS += cross/imapfilter

OPTIONAL_DEPENDS = cross/sshfs cross/ser2net

Expand All @@ -21,10 +22,10 @@ OPTIONAL_DESC := $(OPTIONAL_DESC)", sshfs, ser2net"
endif

MAINTAINER = ymartin59
DESCRIPTION = "SynoCli Network Tools provides a set of small command-line utilities: screen, tmux, socat, nmap, arp-scan, mtr \(My traceroute\), links, sshfs, rsync, autossh, etherwake$(OPTIONAL_DESC). Credits to Sebastian Schmidt \(publicarray\) for icons."
DESCRIPTION = "SynoCli Network Tools provides a set of small command-line utilities: screen, tmux, socat, nmap, arp-scan, mtr \(My traceroute\), links, sshfs, rsync, autossh, etherwake, IMAPFilter$(OPTIONAL_DESC). Credits to Sebastian Schmidt \(publicarray\) for icons."
DISPLAY_NAME = SynoCli Network Tools
STARTABLE = no
CHANGELOG = "Remove fritzctl because it is unsupported on golang 1.16."
CHANGELOG = "Add IMAPFilter v2.7.5"

HOMEPAGE = https://github.com/SynoCommunity/spksrc/wiki/FAQ-SynoCliNet
LICENSE = Each tool is licensed under it\'s respective license.
Expand All @@ -46,4 +47,7 @@ SPK_COMMANDS += sbin/ser2net
SPK_COMMANDS += sbin/mtr sbin/mtr-packet
SPK_COMMANDS += bin/etherwake

SPK_COMMANDS += bin/imapfilter
SPK_LINKS += /usr/local/share/imapfilter:share/imapfilter

include ../../mk/spksrc.spk.mk