Skip to content

Commit

Permalink
imapfilter: initial package for imapfilter v2.6.16
Browse files Browse the repository at this point in the history
  • Loading branch information
VanStratum authored and hgy59 committed Dec 30, 2020
1 parent 4d89923 commit ca33fdf
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cross/imapfilter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PKG_NAME = imapfilter
PKG_VERS = 2.6.16
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/lefcha/$(PKG_NAME)/archive
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

CONFIGURE_TARGET = nop

DEPENDS = cross/openssl cross/lua cross/pcre

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
UNSUPPORTED_ARCHS = ppc853x

include ../../mk/spksrc.cross-cc.mk
9 changes: 9 additions & 0 deletions cross/imapfilter/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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
3 changes: 3 additions & 0 deletions cross/imapfilter/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
v2.6.16.tar.gz SHA1 390f8e04c4f0b37620199f69ed531ed1bbcf6d7d
v2.6.16.tar.gz SHA256 90af9bc9875e03fb5a09a3233287b74dd817867cb18ec9ff52fead615755563e
v2.6.16.tar.gz MD5 3cb100fd8171c893079f9a969fea6db8
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
19 changes: 19 additions & 0 deletions spk/imapfilter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
SPK_NAME = imapfilter
SPK_VERS = 2.6.16
SPK_REV = 1

DEPENDS = cross/openssl cross/lua cross/pcre 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
BETA = 1

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

INSTALL_PREFIX = /usr/local
UNSUPPORTED_ARCHS = ppc853x

include ../../mk/spksrc.spk.mk
Empty file added spk/imapfilter/PLIST
Empty file.

0 comments on commit ca33fdf

Please sign in to comment.