30 lines
697 B
Plaintext
30 lines
697 B
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
pkgname=redxen-secret-opendkim
|
|
pkgver="$(date +'%Y.%m.%d')"
|
|
pkgrel=0
|
|
pkgdesc="Generated OpenDKIM keys"
|
|
url="https://git.redxen.eu/RedXen/aports"
|
|
arch="noarch"
|
|
license="none"
|
|
makedepends="opendkim-utils"
|
|
subpackages="$pkgname-dns"
|
|
options="!check"
|
|
builddir="$srcdir"
|
|
source=""
|
|
|
|
build() {
|
|
opendkim-genkey -b 2048 -s "$pkgver-mail" -d redxen.eu
|
|
msg "Add this DNS TXT record"
|
|
cat "$pkgver-mail".txt
|
|
}
|
|
|
|
package() {
|
|
install -Dm400 "$pkgver-mail".private "$pkgdir"/etc/opendkim/redxen/"$pkgver-mail".private
|
|
}
|
|
|
|
dns() {
|
|
install -Dm644 "$builddir"/"$pkgver-mail".txt "$subpkgdir"/etc/opendkim/redxen/dns-record
|
|
}
|
|
|