diff --git a/AdminScripts/shadowarch-sync b/AdminScripts/shadowarch-sync index 8540e6f..7c9af3a 100644 --- a/AdminScripts/shadowarch-sync +++ b/AdminScripts/shadowarch-sync @@ -9,4 +9,19 @@ # # Author: DarkFeather +seconds=10 +echo "This will sync your /etc files with the AniNIX defaults and add the AniNIX +GPG key for pacman." +echo "Proceeding in $seconds seconds. Is this OK? [YES/no] " +timeout $seconds cat | read answer +if [[ "${answer,,}" =~ ^n ]]; then + exit 0; +fi + rsync -avz /opt/aninix/ShadowArch/etc/ /etc/ +keyid=D9DC5933A1B0D4F7 +if ! gpg --homedir /etc/pacman.d/gnupg --list-key "${keyid}"; then + pacman-key --add /usr/share/pacman/keyrings/aninix.gpg + pacman-key --finger "${keyid}" + pacman-key --lsign-key "${keyid}" +fi diff --git a/EtcFiles/pacman.conf b/EtcFiles/pacman.conf index dd213ae..cf536a2 100644 --- a/EtcFiles/pacman.conf +++ b/EtcFiles/pacman.conf @@ -102,10 +102,10 @@ Include = /etc/pacman.d/mirrorlist #Server = file:///home/custompkgs [aninix] -SigLevel = Optional TrustAll +SigLevel = Required DatabaseOptional Server = https://aninix.net/maat/ [aur] -SigLevel = Optional TrustAll +SigLevel = Required DatabaseOptional Server = https://aninix.net/maat/aur/ diff --git a/EtcFiles/shadowarch b/EtcFiles/shadowarch index 1c88b5c..e7b3024 100644 --- a/EtcFiles/shadowarch +++ b/EtcFiles/shadowarch @@ -311,11 +311,12 @@ fi # Set hostname header Set hostname -printf "What is your hostname? AniNIX::" +printf "What is your fully-qualified hostname? (i.e. core.aninix.net) " read hostname echo "$hostname" > /mnt/etc/hostname +hostname "$hostname" -header Installed ShadowArch\! +header Installed ShadowArch on AniNIX::`hostname -s`\! if [ ! -z "$nodiskbuild" ]; then header Remember to run grub-install and set up your bootloader. echo 'https://wiki.archlinux.org/index.php/Installation_guide#Boot_loader' diff --git a/EtcFiles/ssh-agent@.service b/EtcFiles/ssh-agent@.service index fe33c89..40021c3 100644 --- a/EtcFiles/ssh-agent@.service +++ b/EtcFiles/ssh-agent@.service @@ -3,11 +3,10 @@ Description=SSH-Agent for User %I After=network.target shadow.service [Service] -ExecStart=/bin/bash -c "ssh-agent -s > /home/%I/.bashrc.ssh-agent" +ExecStart=ssh-agent -s ExecReload=/bin/kill -HUP $MAINPID Type=oneshot KillMode=process -Restart=on-failed User=%I Group=%I diff --git a/Makefile b/Makefile index 5ca3666..c57c332 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ compile: ${LIST} for i in ${LIST}; do make -C ./$$i; done install: compile + mkdir -p ${pkgdir}/usr/share/pacman/keyrings + cp ./aninix.gpg ${pkgdir}/usr/share/pacman/keyrings for i in ${LIST}; do make -C ./$$i install; done reverse: diff --git a/PKGBUILD b/PKGBUILD index a0705a4..1d91e2c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Shikoba Kage -pkgname=shadowarch -pkgver=0.1.310c778 -pkgver() { - printf "0.1.""$(git rev-parse --short HEAD)" -} +pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//' | tr '[[:upper:]]' '[[:lower:]]')" +pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)" pkgrel=1 +pkgrel() { + git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit +} epoch= -pkgdesc="AniNIX::ShadowArch \\\\ AniNIX preferred shell environment" +pkgdesc="$(head -n 1 README)" arch=("x86_64") -url="https://aninix.net/foundation/ShadowArch" +url="https://aninix.net/foundation/${pkgname}" license=('custom') groups=() depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13') diff --git a/README b/README new file mode 100644 index 0000000..1b8e7fd --- /dev/null +++ b/README @@ -0,0 +1,6 @@ +AniNIX::ShadowArch \\ AniNIX preferred shell environment + +This package holds core files for our environment. +* EtcFiles: Core configuration for our experience +* AdminScripts: Scripts requiring root access for administration +* UserScripts: Useful user-space deprivileged scripts diff --git a/aninix.gpg b/aninix.gpg new file mode 100755 index 0000000..1c3ab41 Binary files /dev/null and b/aninix.gpg differ