# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697

pkgname=dhcpcd-hardened-script
pkgver=0.1
pkgrel=1
pkgdesc="Removes Hostname and resets DUID on bootup to prevent DHCP leaks on the network"
arch=(any)
license=(GPL2)
depends=('dhcpcd')
source=('dhcpcd_hardened.sh'
'dhcpcd-hardened-script.service')
sha512sums=('3f14d58fe05ab521594f2f48aaf0124c019b079a7fad267b70e5e0fd8cc08860edbaebeb68149de1599355845c17e4f5229d7664b74604e70d3f36b18c05b63a'
'a8ee4b8e663daa0c282176852fdc1ca76ac48c19d2571bd898ea31f522d7233078c1cfc2775e7838964ede35179cf5c7e591431c7420a80a2fc6d75366d24bd8')
whirlpoolsums=('01a554f1dad6a49adf99faea21fc4e622a2af3f0d4001b80adde30daf255e46f69d22cd94142d70d5984bcd7ac234e38bab507c919827709d799e6d808c02b2d'
'ee2f8a3cff99d387ed223579b688663995ff626f784ea74ea5bcc70eca797472cf535f6cfe74665dcde6f297205c86b5613361f02bd1ed0081f26913391f3c2c')

package() {
  install -Dm755 dhcpcd_hardened.sh "$pkgdir"/usr/lib/dhcpcd/dhcpcd_hardened.sh
  install -Dm644 "$srcdir/dhcpcd-hardened-script.service"    "$pkgdir/usr/lib/systemd/system/dhcpcd-hardened-script.service"
}