Skip to content

Commit

Permalink
imapfilter: implement changes suggested in SynoCommunity#3836
Browse files Browse the repository at this point in the history
Add service-setup script.
Change name of downloaded tgz.
Fix dependencies of the spk.
Add rule to compile on ppc platforms.
Remove beta status.
Move to diyspk.
  • Loading branch information
VanStratum authored and hgy59 committed Dec 30, 2020
1 parent ca33fdf commit e13a8c6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
7 changes: 6 additions & 1 deletion cross/imapfilter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PKG_NAME = imapfilter
PKG_VERS = 2.6.16
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/lefcha/$(PKG_NAME)/archive
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

Expand All @@ -12,6 +13,10 @@ 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

ifeq ($(findstring $(ARCH),powerpc ppc824x ppc853x ppc854x),$(ARCH))
# PPC_ARCHES except QorIQ
ADDITIONAL_CFLAGS = -DLUA_32BITS
endif

include ../../mk/spksrc.cross-cc.mk
6 changes: 3 additions & 3 deletions cross/imapfilter/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
v2.6.16.tar.gz SHA1 390f8e04c4f0b37620199f69ed531ed1bbcf6d7d
v2.6.16.tar.gz SHA256 90af9bc9875e03fb5a09a3233287b74dd817867cb18ec9ff52fead615755563e
v2.6.16.tar.gz MD5 3cb100fd8171c893079f9a969fea6db8
imapfilter-2.6.16.tar.gz SHA1 390f8e04c4f0b37620199f69ed531ed1bbcf6d7d
imapfilter-2.6.16.tar.gz SHA256 90af9bc9875e03fb5a09a3233287b74dd817867cb18ec9ff52fead615755563e
imapfilter-2.6.16.tar.gz MD5 3cb100fd8171c893079f9a969fea6db8
6 changes: 3 additions & 3 deletions spk/imapfilter/Makefile → diyspk/imapfilter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ SPK_NAME = imapfilter
SPK_VERS = 2.6.16
SPK_REV = 1

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

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

INSTALL_PREFIX = /usr/local
UNSUPPORTED_ARCHS = ppc853x

SERVICE_SETUP = src/service-setup.sh

include ../../mk/spksrc.spk.mk
File renamed without changes.
11 changes: 11 additions & 0 deletions diyspk/imapfilter/src/service-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
service_postinst ()
{
ln -s ${SYNOPKG_PKGDEST}/bin/imapfilter /usr/local/bin/imapfilter
ln -s ${SYNOPKG_PKGDEST}/share/imapfilter /usr/local/share/
}

service_postuninst ()
{
rm /usr/local/bin/imapfilter
rm /usr/local/share/imapfilter
}

0 comments on commit e13a8c6

Please sign in to comment.