summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2023-09-24 10:04:01 +0200
committerPÁLI Gábor János <pali.gabor@gmail.com>2023-09-26 11:53:45 +0200
commit84b8fd5454ca9b72f7ce12f181f0f737d92f2438 (patch)
tree85666e1f3f5172003c92124904a006116f3341e5
parentdbaad257d6f092667a77f80cf24a3be01c4911ca (diff)
downloadfreebsd-wifibox-alpine-84b8fd5454ca9b72f7ce12f181f0f737d92f2438.zip
base-layout: add users and configuration bits for IPv6 support
-rw-r--r--aports/base-layout/APKBUILD15
-rw-r--r--aports/base-layout/group2
-rw-r--r--aports/base-layout/passwd2
3 files changed, 15 insertions, 4 deletions
diff --git a/aports/base-layout/APKBUILD b/aports/base-layout/APKBUILD
index cfc90b9..90ff6d2 100644
--- a/aports/base-layout/APKBUILD
+++ b/aports/base-layout/APKBUILD
@@ -2,7 +2,7 @@
pkgname=baselayout # base: alpine-baselayout, alpine-baselayout-data
pkgver=3.4.3
-pkgrel=0 # base: 1
+pkgrel=1 # base: 1
pkgdesc="Base dir structure and init scripts"
url="https://git.alpinelinux.org/cgit/aports/tree/main/alpine-baselayout"
arch="noarch"
@@ -116,7 +116,14 @@ package() {
/bin/ash
EOF
cat > "$pkgdir"/etc/sysctl.conf <<-EOF
- net.ipv4.ip_forward=1
+ net.ipv4.ip_forward = 1
+ net.ipv6.conf.all.forwarding = 2
+ net.ipv6.conf.default.forwarding = 2
+ # Enable IPv6 Privacy Extensions
+ net.ipv6.conf.all.use_tempaddr = 2
+ net.ipv6.conf.default.use_tempaddr = 2
+ net.ipv6.conf.eth0.use_tempaddr = 2
+ net.ipv6.conf.wlan0.use_tempaddr = 2
EOF
cat > "$pkgdir"/lib/sysctl.d/00-alpine.conf <<-EOF
# Prevents SYN DOS attacks. Applies to ipv6 as well, despite name.
@@ -192,9 +199,9 @@ package() {
sha512sums="
6e169c0975a1ad1ad871a863e8ee83f053de9ad0b58d94952efa4c28a8c221445d9e9732ad8b52832a50919c2f39aa965a929b3d5b3f9e62f169e2b2e0813d82 crontab
b2fc9b72846a43a45ba9a8749e581cef34d1915836833b51b7919dfbf4e275b7d55fec4dea7b23df3796380910971a41331e53e8cf0d304834e3da02cc135e5a 20locale.sh
-806b8f23f823a9471846d12fa6b55690b95eedb4c613b82aefaba7ffef23f83e17552befd891a487864f72ef24e395d8611738933f684a85eb4c336cb20994f8 group
+0b786df3a610e84ae98cbef8dc74998404a048c4a48d7acf57eafb04fb481b4b7f8a80c065f1ca10cced22c89243cc6e81b0ad46d5ca4a194d63ce49969cce09 group
7cc3c23062c730ec7a1d7850423d9901047005520da5b347b7b24e5f33a9c9a9129b430557f7f41e565f143624b7f3c47e3f6e4a6a446e75f0ea245c03d70880 inittab
-06d12a7b9ca14fe17e412d0f24814620b67d035ae859be7906cbf4782dd69e359a6a555dafb98060b7fb7e4714aaa676c88d9017cded36e6d8398e23369bb290 passwd
+b3508f9dc77e7eeb761c2d72b5f1003d09dbeaef1cd2d6b7ac47fb5c770cad507c89713d70d5ab0b645378e486cab2e130e9862cbfd2eea783b1808d4ca075f5 passwd
4eb857ed59c2edb257636d2bf196989e514a273e9701e9f076c9ae8c1589b4898269180569960acf072c0981ec7ea54014fd230f014401d6bb92314285d1e6aa profile
3a00083bcdf5a9e884c9d07877d52311e3d99e79cbee656e236ba06e08ba0dddb7ba76494fdc9dd1a826c48e197a790a69e6bb458e9df64832d6b5e904e9fd15 protocols-6.4
47b0f3ee73af2d259bd206a026204be0ea25531a895a0b035a904b38fe5407bc3dd2beab7f8fcb3d760587e6159702ebdb9cbc4f508942befdf7f10c10c87888 services-6.4
diff --git a/aports/base-layout/group b/aports/base-layout/group
index 23b124b..59f0011 100644
--- a/aports/base-layout/group
+++ b/aports/base-layout/group
@@ -46,3 +46,5 @@ utmp:x:406:
ping:x:999:
nogroup:x:65533:
nobody:x:65534:
+dhcpcd:x:102:dhcpcd
+radvd:x:103:radvd
diff --git a/aports/base-layout/passwd b/aports/base-layout/passwd
index cc124a9..1921918 100644
--- a/aports/base-layout/passwd
+++ b/aports/base-layout/passwd
@@ -25,3 +25,5 @@ ntp:x:123:123:NTP:/var/empty:/sbin/nologin
smmsp:x:209:209:smmsp:/var/spool/mqueue:/sbin/nologin
guest:x:405:100:guest:/dev/null:/sbin/nologin
nobody:x:65534:65534:nobody:/:/sbin/nologin
+dhcpcd:x:101:102:dhcpcd:/var/lib/dhcpcd:/sbin/nologin
+radvd:x:102:103:Router advertisement (radvd) user:/home/radvd:/sbin/nologin