diff options
author | Piotr Wójcik <chocimier@tlen.pl> | 2021-10-04 21:53:42 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-10-04 22:01:43 +0200 |
commit | 59eacf3c261e3f80a81e9ce53631a871f2b1b68b (patch) | |
tree | 970e3918cda8d7472b72655ffeb6dfdf2eedacd9 | |
parent | 61d1e22e0507be047d6fb4c3ec2fef44a1185bb5 (diff) | |
download | xtools-59eacf3c261e3f80a81e9ce53631a871f2b1b68b.tar.gz xtools-59eacf3c261e3f80a81e9ce53631a871f2b1b68b.tar.xz xtools-59eacf3c261e3f80a81e9ce53631a871f2b1b68b.zip |
xlint: check system_accounts underscore prefix
Existing accounts should keep their name.
-rwxr-xr-x | xlint | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/xlint b/xlint index 828be16..4f60df4 100755 --- a/xlint +++ b/xlint @@ -252,7 +252,98 @@ wrksrc xml_catalogs xml_entries" | tr '\n' '|') +old_accounts=$(echo -n "at +avahi +bitlbee +boinc +caddy +chrony +clocksd +colord +couchpotato +cups +dbus +deluge +dictd +dnscrypt_proxy +dnsmasq +elastic +elog +etcd +fcron +ftp +gdm +gerbera +gitolite +gogs +gpsd +h2o +haproxy +icinga +inadyn +inspircd +jenkins +kube +ldap +libvirt +lidarr +lightdm +mail +minidlna +monero +mopidy +mpd +munge +mysql +named +nbd +ndhc +nethack +nginx +nsd +nslcd +ntpd +nut +openntpd +orientdb +polkitd +postfix +postgres +privoxy +prosody +pulse +puppet +quassel +radicale +redis +relaysrv +rmilter +rpc +rspamd +rsvlog +rtkit +sddm +shadowsocks +sndiod +squid +storm +suricata +synapse +taskd +tomcat +tor +transmission +tss +tuntox +umurmur +usbmux +voidupdates +x2gouser +xbmc +znc" | tr '\n' '|') + void_packages="$(xdistdir 2>/dev/null)/" + ret=0 for argument; do template= @@ -350,6 +441,7 @@ for argument; do pkgname=$(grep -Po "^pkgname=\K.*" "$template") version=$(grep -Po "^version=\K.*" "$template") scan "distfiles=.*\Q$version\E" 'use ${version} in distfiles instead' + scan "system_accounts=.*\b(?!($old_accounts))[a-zA-Z]" 'new accounts should be prefixed with underscore' variables_order header file_end |