aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-baselayout
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-07-12 11:30:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-12 11:43:33 +0000
commitf11bf4b27645bc44347dbac103578f44d7291a01 (patch)
tree30b79390103dde3a5e626eaea9c25192b6a0838e /main/alpine-baselayout
parente1a9254211b885e6e44538e53dc3f9f341f261f0 (diff)
downloadaports-f11bf4b27645bc44347dbac103578f44d7291a01.tar.bz2
aports-f11bf4b27645bc44347dbac103578f44d7291a01.tar.xz
main/alpine-baselayout: let lastchange in /etc/shadow be empty
otherwise it will change every rebuild of package
Diffstat (limited to 'main/alpine-baselayout')
-rw-r--r--main/alpine-baselayout/APKBUILD7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/alpine-baselayout/APKBUILD b/main/alpine-baselayout/APKBUILD
index b3922e9fc5..00e2265407 100644
--- a/main/alpine-baselayout/APKBUILD
+++ b/main/alpine-baselayout/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-baselayout
pkgver=2.3.0
-pkgrel=0
+pkgrel=1
pkgdesc="Alpine base dir structure and init scripts"
url="http://git.alpinelinux.org/cgit/aports/tree/main/alpine-baselayout"
depends=
@@ -37,11 +37,10 @@ build() {
"$srcdir"/mkmntdirs.c -o "$_builddir"/mkmntdirs
# generate shadow
- local lastchange=$(( $( date +%s ) / ( 24 * 3600 ) ))
- awk -v lastchange="$lastchange" -F: '{
+ awk -F: '{
pw = ":!:"
if ($1 == "root") { pw = "::" }
- print($1 pw lastchange ":0:::::")
+ print($1 pw ":0:::::")
}' "$srcdir"/passwd > shadow
}