Adding GPG signing as recommended by man 8 pacman-key; SSH-agent improvements
This commit is contained in:
		| @@ -9,4 +9,19 @@ | |||||||
| #  | #  | ||||||
| # Author: DarkFeather <darkfeather@aninix.net> | # Author: DarkFeather <darkfeather@aninix.net> | ||||||
|  |  | ||||||
|  | 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/ | 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 | ||||||
|   | |||||||
| @@ -102,10 +102,10 @@ Include = /etc/pacman.d/mirrorlist | |||||||
| #Server = file:///home/custompkgs | #Server = file:///home/custompkgs | ||||||
|  |  | ||||||
| [aninix] | [aninix] | ||||||
| SigLevel = Optional TrustAll | SigLevel = Required DatabaseOptional | ||||||
| Server = https://aninix.net/maat/ | Server = https://aninix.net/maat/ | ||||||
|  |  | ||||||
| [aur] | [aur] | ||||||
| SigLevel = Optional TrustAll | SigLevel = Required DatabaseOptional | ||||||
| Server = https://aninix.net/maat/aur/ | Server = https://aninix.net/maat/aur/ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -311,11 +311,12 @@ fi | |||||||
|  |  | ||||||
| # Set hostname | # Set hostname | ||||||
| header 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 | read hostname | ||||||
| echo "$hostname" > /mnt/etc/hostname | echo "$hostname" > /mnt/etc/hostname | ||||||
|  | hostname "$hostname" | ||||||
|  |  | ||||||
| header Installed ShadowArch\!  | header Installed ShadowArch on AniNIX::`hostname -s`\!  | ||||||
| if [ ! -z "$nodiskbuild" ]; then | if [ ! -z "$nodiskbuild" ]; then | ||||||
|     header Remember to run grub-install and set up your bootloader. |     header Remember to run grub-install and set up your bootloader. | ||||||
|     echo 'https://wiki.archlinux.org/index.php/Installation_guide#Boot_loader' |     echo 'https://wiki.archlinux.org/index.php/Installation_guide#Boot_loader' | ||||||
|   | |||||||
| @@ -3,11 +3,10 @@ Description=SSH-Agent for User %I | |||||||
| After=network.target shadow.service | After=network.target shadow.service | ||||||
|  |  | ||||||
| [Service] | [Service] | ||||||
| ExecStart=/bin/bash -c "ssh-agent -s > /home/%I/.bashrc.ssh-agent" | ExecStart=ssh-agent -s | ||||||
| ExecReload=/bin/kill -HUP $MAINPID | ExecReload=/bin/kill -HUP $MAINPID | ||||||
| Type=oneshot | Type=oneshot | ||||||
| KillMode=process | KillMode=process | ||||||
| Restart=on-failed |  | ||||||
| User=%I | User=%I | ||||||
| Group=%I | Group=%I | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -4,6 +4,8 @@ compile: ${LIST} | |||||||
| 	for i in ${LIST}; do make -C ./$$i; done | 	for i in ${LIST}; do make -C ./$$i; done | ||||||
|  |  | ||||||
| install: compile  | 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 | 	for i in ${LIST}; do make -C ./$$i install; done | ||||||
|  |  | ||||||
| reverse:  | reverse:  | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								PKGBUILD
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								PKGBUILD
									
									
									
									
									
								
							| @@ -1,14 +1,14 @@ | |||||||
| # Maintainer: Shikoba Kage <darkfeather@aninix.net> | # Maintainer: Shikoba Kage <darkfeather@aninix.net> | ||||||
| pkgname=shadowarch | pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//' | tr '[[:upper:]]' '[[:lower:]]')" | ||||||
| pkgver=0.1.310c778 | pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)" | ||||||
| pkgver() { |  | ||||||
|     printf "0.1.""$(git rev-parse --short HEAD)" |  | ||||||
| } |  | ||||||
| pkgrel=1 | pkgrel=1 | ||||||
|  | pkgrel() {  | ||||||
|  |     git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit | ||||||
|  | } | ||||||
| epoch= | epoch= | ||||||
| pkgdesc="AniNIX::ShadowArch \\\\ AniNIX preferred shell environment" | pkgdesc="$(head -n 1 README)" | ||||||
| arch=("x86_64") | arch=("x86_64") | ||||||
| url="https://aninix.net/foundation/ShadowArch" | url="https://aninix.net/foundation/${pkgname}" | ||||||
| license=('custom') | license=('custom') | ||||||
| groups=() | groups=() | ||||||
| depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13') | depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13') | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								README
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								README
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||||
							
								
								
									
										
											BIN
										
									
								
								aninix.gpg
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								aninix.gpg
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user
	 DarkFeather
					DarkFeather