Commit 0ffb45c3 authored by Marco Dickert's avatar Marco Dickert Committed by Leo
Browse files

main/msmtp: Add openrc package for the service


Signed-off-by: Marco Dickert's avatarMarco Dickert <marco@misterunknown.de>
parent 5fbd2747
......@@ -2,18 +2,19 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=msmtp
pkgver=1.8.6
pkgrel=0
pkgrel=1
pkgdesc="SMTP client with a sendmail compatible interface"
url="https://marlam.de/msmtp/"
arch="all"
license="GPL-3.0-or-later"
options="!check" # no test suite
makedepends="gettext-dev gnutls-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-vim:vim:noarch"
source="https://marlam.de/msmtp/releases/msmtp-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang $pkgname-openrc $pkgname-vim:vim:noarch"
source="https://marlam.de/msmtp/releases/msmtp-$pkgver.tar.xz
msmtp.confd
msmtp.initd"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -25,8 +26,10 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
install -Dm644 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
}
vim() {
......@@ -37,4 +40,6 @@ vim() {
"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}
sha512sums="9d3dd282ddfe2d67b67bb6d29412beebcd666d4ab8e90a664b7dd4b951714da0e3adba72dbe165617b1a170779bcd45e2e7bcf54d1d96fa97089686e71cbea66 msmtp-1.8.6.tar.xz"
sha512sums="9d3dd282ddfe2d67b67bb6d29412beebcd666d4ab8e90a664b7dd4b951714da0e3adba72dbe165617b1a170779bcd45e2e7bcf54d1d96fa97089686e71cbea66 msmtp-1.8.6.tar.xz
3839d7e8400cf897830c674f59563e225096d9755121d1ac14f3b493ab4cc0672228a9b14b9d9620d566593e2ae27d322a78c46791c6b5166ab82275d25dc0d3 msmtp.confd
6845e1c5b1d31ade044dc5719a4d9602ea775e73ebd9084536a96165732f5a331f92384773131cda502befc673842ed2a418e38f33dceedaae18dbe452ef2353 msmtp.initd"
# defaut config
#MSMTP_INTERFACE="127.0.0.1"
#MSMTP_PORT="25"
#MSMTP_COMMAND="/usr/bin/msmtp -f %F"
#!/sbin/openrc-run
: ${MSMTP_INTERFACE:="127.0.0.1"}
: ${MSMTP_PORT:="25"}
: ${MSMTP_COMMAND:="/usr/bin/msmtp -f %F"}
pidfile="/var/run/${SVCNAME}"
command="/usr/bin/${SVCNAME}"
command_args="--interface=$MSMTP_INTERFACE --port=$MSMTP_PORT --command=$MSMTP_COMMAND "
command_background="yes"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment