27 lines
997 B
Plaintext
27 lines
997 B
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
. ../APKBUILD-config.template
|
|
|
|
pkgver=2021.08.15.20
|
|
pkgrel=0
|
|
source="
|
|
ipsec.conf
|
|
oe-local.conf
|
|
rxpriv.policy
|
|
"
|
|
|
|
package() {
|
|
rx_install ipsec.conf
|
|
echo "%any %any6 : PSK \"$(cat /dev/urandom | tr -dc '[:alnum:]' | head -c 128)\"" > ipsec.secrets # Generate strong PSK for all hosts
|
|
rx_install ipsec.secrets
|
|
_rx_installdir="$_rx_installdir/ipsec.d" rx_install oe-local.conf
|
|
_rx_installdir="$_rx_installdir/ipsec.d/policies" rx_install rxpriv.policy rxpriv
|
|
}
|
|
|
|
sha512sums="
|
|
e7f704fc9bb1edb0deef86dda50e1bcc186c3ba06aca488822fa2c3672f6910d7426d686ceb30f0a44981e1edcfd968c0f68bd764a65aeb47595635317781c68 ipsec.conf
|
|
3f719abccfb5c3719e22ad711b119e94121ff25da10c982d59f8f78ffe4ffbacd5cd3633b7c4595f593ec3b896df031d3eff47e5d59a25786a5906bb1a1f5cd8 oe-local.conf
|
|
fdafb14889aa7b149f419f7bafd30fe3da0a780a385741143ddbd3456a1365bde63d67c6b0dccfc1e44405862443c65c0077d89bfd69a1619e2d1008a72f3501 rxpriv.policy
|
|
"
|