2021-02-08 11:00:58 +00:00
|
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
2021-06-01 23:17:41 +00:00
|
|
|
|
|
|
|
. ../APKBUILD-secret.template
|
|
|
|
|
|
|
|
pkgver="$pkgver.01"
|
2021-02-08 11:00:58 +00:00
|
|
|
pkgrel=0
|
|
|
|
makedepends="opendkim-utils"
|
|
|
|
subpackages="$pkgname-dns"
|
|
|
|
|
|
|
|
build() {
|
2021-06-01 23:17:41 +00:00
|
|
|
msg "Generating OpenDKIM signing key"
|
2021-02-08 11:00:58 +00:00
|
|
|
opendkim-genkey -b 2048 -s "$pkgver-mail" -d redxen.eu
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-06-01 23:17:41 +00:00
|
|
|
rx_install "$pkgver-mail".private
|
2021-02-08 11:00:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dns() {
|
2021-06-01 23:17:41 +00:00
|
|
|
rx_install "$pkgver-mail".txt dns-record
|
2021-02-08 11:00:58 +00:00
|
|
|
}
|
|
|
|
|