Renamed iglunix package
This commit is contained in:
		
							parent
							
								
									58954c1a5e
								
							
						
					
					
						commit
						d655cf87a9
					
				
					 5 changed files with 74 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								pkgs/iglunix/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								pkgs/iglunix/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,40 @@ | |||
| pkgver=main | ||||
| pkgname=iglunix | ||||
| pkgrel=1 | ||||
| deps="busybox:toybox" | ||||
| bad="" | ||||
| ext="dev" | ||||
| 
 | ||||
| fetch() { | ||||
| 	mkdir $pkgname-$pkgver | ||||
| 	cp ../profile.sh . | ||||
| 	cp ../motd . | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cp ../../../../iglu*.sh . | ||||
| 	cp ../../../../LICENSE . | ||||
| } | ||||
| 
 | ||||
| build() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	echo "Nothing to do" | ||||
| } | ||||
| 
 | ||||
| package() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	install -d $pkgdir/etc/ | ||||
| 	install -Dm644 ../profile.sh $pkgdir/etc/profile | ||||
| 	install -Dm644 ../motd $pkgdir/etc/ | ||||
| 	install -d $pkgdir/usr/sbin | ||||
| 	install -Dm755 iglu.sh $pkgdir/usr/sbin/iglu | ||||
| } | ||||
| 
 | ||||
| package_dev() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	install -d $pkgdir/usr/bin | ||||
| 	install -Dm755 iglupkg.sh $pkgdir/usr/bin/iglupkg | ||||
| } | ||||
| 
 | ||||
| license() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cat LICENSE | ||||
| } | ||||
							
								
								
									
										14
									
								
								pkgs/iglunix/motd
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								pkgs/iglunix/motd
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
|      |         | ||||
|      |        | | ||||
|               | | ||||
| |    ________  | ||||
| |  /\   |    \     | ||||
|   /  \  |     \  | | ||||
|  /    \        \ | | ||||
| /      \________\ | ||||
| \      /        / | ||||
|  \    /        / | ||||
|   \  /        / | ||||
|    \/________/ | ||||
| 
 | ||||
| Iglunix: Drop the Packages | ||||
							
								
								
									
										20
									
								
								pkgs/iglunix/profile.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								pkgs/iglunix/profile.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| # Setup Path | ||||
| export PATH=/usr/sbin:/usr/bin:/sbin:/bin | ||||
| export POSIX_ME_HARDER=1 | ||||
| 
 | ||||
| # Setup Shell Prompt | ||||
| if [ "$(whoami)" == "root" ]; then | ||||
| 	export PS1=$(hostname)"# " | ||||
| else | ||||
| 	export PS1=$(hostname)"$ " | ||||
| fi | ||||
| 
 | ||||
| # Replace TERM with xterm because netbsd-curses doesn't include alacritty | ||||
| if [ "$TERM" == "alacritty" ]; then | ||||
| 	export TERM=xterm | ||||
| fi | ||||
| 
 | ||||
| # load profile | ||||
| for file in $(ls /etc/profile.d); do | ||||
| 	. /etc/profile.d/$file | ||||
| done | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue