Skip to content

Commit

Permalink
mutt: update to 1.13.4 and add SASL support (#3923)
Browse files Browse the repository at this point in the history
* Update mutt and add SASL support

- update mutt to version 1.13.4
- add cross/cyrus-sasl
- use service-setup.sh for installation

* incorporate code review
  • Loading branch information
hgy59 authored Mar 22, 2020
1 parent e22094e commit 409c121
Show file tree
Hide file tree
Showing 13 changed files with 118 additions and 136 deletions.
16 changes: 16 additions & 0 deletions cross/cyrus-sasl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PKG_NAME = cyrus-sasl
PKG_VERS = 2.1.27
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/cyrusimap/cyrus-sasl/releases/download/$(PKG_NAME)-$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/openssl

HOMEPAGE = https://github.com/cyrusimap/cyrus-sasl
COMMENT = This is the Cyrus SASL API implementation. It can be used on the client or server side to provide authentication and authorization services. See RFC 4422 for more information.
LICENSE = https://github.com/cyrusimap/cyrus-sasl/blob/master/COPYING

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk
21 changes: 21 additions & 0 deletions cross/cyrus-sasl/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
lnk:lib/libsasl2.so
lnk:lib/libsasl2.so.3
lib:lib/libsasl2.so.3.0.0
lnk:lib/sasl2/libanonymous.so
lnk:lib/sasl2/libanonymous.so.3
lib:lib/sasl2/libanonymous.so.3.0.0
lnk:lib/sasl2/libcrammd5.so
lnk:lib/sasl2/libcrammd5.so.3
lib:lib/sasl2/libcrammd5.so.3.0.0
lnk:lib/sasl2/libdigestmd5.so
lnk:lib/sasl2/libdigestmd5.so.3
lib:lib/sasl2/libdigestmd5.so.3.0.0
lnk:lib/sasl2/libotp.so
lnk:lib/sasl2/libotp.so.3
lib:lib/sasl2/libotp.so.3.0.0
lnk:lib/sasl2/libplain.so
lnk:lib/sasl2/libplain.so.3
lib:lib/sasl2/libplain.so.3.0.0
lnk:lib/sasl2/libscram.so
lnk:lib/sasl2/libscram.so.3
lib:lib/sasl2/libscram.so.3.0.0
3 changes: 3 additions & 0 deletions cross/cyrus-sasl/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cyrus-sasl-2.1.27.tar.gz SHA1 fbfe6f298b0d2efcdab6a40bf47e16d003ae5dc6
cyrus-sasl-2.1.27.tar.gz SHA256 26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
cyrus-sasl-2.1.27.tar.gz MD5 a33820c66e0622222c5aefafa1581083
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- include/Makefile.in.org 2018-10-09 14:58:13.000000000 +0000
+++ include/Makefile.in 2020-02-11 18:59:17.401275731 +0000
@@ -270,12 +270,12 @@
BUILD_OBJEXT = @BUILD_OBJEXT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
-CC_FOR_BUILD = @CC_FOR_BUILD@
-CFLAGS = @CFLAGS@
+CC_FOR_BUILD = gcc
+CFLAGS =
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CMU_LIB_SUBDIR = @CMU_LIB_SUBDIR@
CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
+CPPFLAGS =
CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
CPP_FOR_BUILD = @CPP_FOR_BUILD@
CYGPATH_W = @CYGPATH_W@
17 changes: 7 additions & 10 deletions cross/mutt/Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
PKG_NAME = mutt
PKG_VERS = 1.5.24
PKG_VERS = 1.13.4
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = ftp://ftp.mutt.org/pub/$(PKG_NAME)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/ncursesw cross/openssl
DEPENDS = cross/ncursesw cross/openssl cross/cyrus-sasl

HOMEPAGE = http://www.mutt.org
COMMENT = Mutt is a small but very powerful text-based mail client for Unix operating systems.
LICENSE = GPLv2

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --with-ssl=openssl --enable-pop --enable-imap --enable-smtp
CONFIGURE_ARGS = --with-ssl=openssl --enable-pop --enable-imap --enable-smtp --with-sasl

INSTALL_TARGET = mutt_install

INSTALL_TARGET = myInstall
POST_INSTALL_TARGET = myPostInstall

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

.PHONY: myInstall
myInstall:
.PHONY: mutt_install
mutt_install:
$(RUN) $(MAKE) install DESTDIR=$(INSTALL_DIR)

.PHONY: myPostInstall
myPostInstall:
cp $(WORK_DIR)/$(PKG_DIR)/doc/Muttrc $(STAGING_INSTALL_PREFIX)/etc/Muttrc
11 changes: 6 additions & 5 deletions cross/mutt/PLIST
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
bin:bin/flea
rsc:bin/flea
bin:bin/mutt
bin:bin/muttbug
bin:bin/mutt_pgpring
rsc:bin/muttbug
bin:bin/pgpewrap
bin:bin/pgpring
bin:bin/smime_keys
rsc:bin/smime_keys
rsc:etc/Muttrc
rsc:etc/mime.types
rsc:etc/mime.types.dist
rsc:etc/Muttrc
rsc:share/locale/bg/LC_MESSAGES/mutt.mo
rsc:share/locale/ca/LC_MESSAGES/mutt.mo
rsc:share/locale/cs/LC_MESSAGES/mutt.mo
Expand All @@ -17,6 +17,7 @@ rsc:share/locale/eo/LC_MESSAGES/mutt.mo
rsc:share/locale/es/LC_MESSAGES/mutt.mo
rsc:share/locale/et/LC_MESSAGES/mutt.mo
rsc:share/locale/eu/LC_MESSAGES/mutt.mo
rsc:share/locale/fi/LC_MESSAGES/mutt.mo
rsc:share/locale/fr/LC_MESSAGES/mutt.mo
rsc:share/locale/ga/LC_MESSAGES/mutt.mo
rsc:share/locale/gl/LC_MESSAGES/mutt.mo
Expand Down
6 changes: 3 additions & 3 deletions cross/mutt/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutt-1.5.24.tar.gz SHA1 38a2da5eb01ff83a90a2caee28fa2e95dbfe6898
mutt-1.5.24.tar.gz SHA256 a292ca765ed7b19db4ac495938a3ef808a16193b7d623d65562bb8feb2b42200
mutt-1.5.24.tar.gz MD5 7f25d27f3c7c82285ac07aac35f5f0f2
mutt-1.13.4.tar.gz SHA1 2d009e2dee3814fd6416ea12f9a501c475367ea3
mutt-1.13.4.tar.gz SHA256 b57d3f1040d8018114cf1033dab229f36e4becbcdf59c2edeb294fc044ffcd04
mutt-1.13.4.tar.gz MD5 8f08d01bb6379ce4f803560db3f1bc65
20 changes: 0 additions & 20 deletions cross/mutt/patches/001-not-build-doc.patch

This file was deleted.

23 changes: 23 additions & 0 deletions cross/mutt/patches/001_not-build-doc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# remove doc from makefile
# cross compiled makedoc is not executable on host system

--- Makefile.in.org 2020-01-12 21:08:53.000000000 +0000
+++ Makefile.in 2020-02-11 21:02:01.550316103 +0000
@@ -326,7 +326,7 @@
ETAGS = etags
CTAGS = ctags
CSCOPE = cscope
-DIST_SUBDIRS = m4 po intl doc contrib imap autocrypt
+DIST_SUBDIRS = m4 po intl contrib imap autocrypt
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(srcdir)/hcachever.sh.in $(top_srcdir)/flymake.am \
$(top_srcdir)/intl/Makefile.in ABOUT-NLS ChangeLog INSTALL \
@@ -540,7 +540,7 @@
@BUILD_IMAP_TRUE@IMAP_INCLUDES = -I$(top_srcdir)/imap
@BUILD_AUTOCRYPT_TRUE@AUTOCRYPT_SUBDIR = autocrypt
@BUILD_AUTOCRYPT_TRUE@AUTOCRYPT_INCLUDES = -I$(top_srcdir)/autocrypt
-SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR) $(AUTOCRYPT_SUBDIR)
+SUBDIRS = m4 po intl contrib $(IMAP_SUBDIR) $(AUTOCRYPT_SUBDIR)
bin_SCRIPTS = muttbug flea $(SMIMEAUX_TARGET)
@BUILD_HCACHE_TRUE@HCVERSION = hcversion.h
BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h conststrings.c version.h $(HCVERSION)
20 changes: 10 additions & 10 deletions spk/mutt/Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
SPK_NAME = mutt
SPK_VERS = 1.5.24
SPK_REV = 2
SPK_VERS = 1.13.4
SPK_REV = 4
SPK_ICON = src/mutt.png

DEPENDS = cross/mutt

MAINTAINER = SynoCommunity
DESCRIPTION = Mutt is a small but very powerful text-based mail client for Unix operating systems.
RELOAD_UI = no
DISPLAY_NAME = Mutt
STARTABLE = no
BETA = 1
CHANGELOG = Update to 1.5.24

CHANGELOG = "1. Update to 1.13.4<br/>2. Add SASL support"

HOMEPAGE = http://www.mutt.org
LICENSE = GPLv2

INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT = src/dsm-control.sh
SERVICE_SETUP = src/service-setup.sh

INSTALL_PREFIX = /usr/local/$(SPK_NAME)
SPK_LINKS = /usr/local/bin/mutt:bin/mutt-utf8

POST_STRIP_TARGET = mutt_extra_install


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

.PHONY: mutt_extra_install
mutt_extra_install:
install -m 755 src/mutt-utf8 $(STAGING_DIR)/bin/mutt-utf8
install -m 644 src/Muttrc.local $(STAGING_DIR)/etc/Muttrc.local
echo "source $(INSTALL_PREFIX)/etc/Muttrc.local" >> $(STAGING_DIR)/etc/Muttrc
install -d -m 755 $(STAGING_DIR)/var
install -m 644 src/Muttrc.local $(STAGING_DIR)/var/Muttrc.local
echo "source $(INSTALL_PREFIX)/var/Muttrc.local" >> $(STAGING_DIR)/etc/Muttrc
28 changes: 0 additions & 28 deletions spk/mutt/src/dsm-control.sh

This file was deleted.

60 changes: 0 additions & 60 deletions spk/mutt/src/installer.sh

This file was deleted.

11 changes: 11 additions & 0 deletions spk/mutt/src/service-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
INSTALL_TARGET_DIR="/var/packages/${SYNOPKG_PKGNAME}/target"

service_save ()
{
# Save configuration of previous installation in ${INSTALL_TARGET_DIR}/etc (upgrades use ${INSTALL_TARGET_DIR}/var)
if [ -e "${INSTALL_TARGET_DIR}/etc/Muttrc.local" ]; then
echo "migrate ${INSTALL_TARGET_DIR}/etc/Muttrc.local to ${INSTALL_TARGET_DIR}/var/Muttrc.local" >> "${INST_LOG}"
mv ${INSTALL_TARGET_DIR}/etc/Muttrc.local ${TMP_DIR}/Muttrc.local >> "${INST_LOG}"
fi
}

0 comments on commit 409c121

Please sign in to comment.