Compare commits
	
		
			14 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 33685e164d | |||
| f419683149 | |||
| 54f31daccb | |||
| be0cfb636e | |||
| 4108a038fa | |||
| 4634c78520 | |||
| a9409d3837 | |||
| 02c3a079a2 | |||
| 72993117fa | |||
| 6e0c336c67 | |||
| a396dafed9 | |||
| c613471459 | |||
| 7abd0c9453 | |||
| 390cc84bbf | 
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							| @@ -87,6 +87,9 @@ PKG_DATA = \ | ||||
| 	data/pacman/makepkg.conf \ | ||||
| 	data/valid-names.conf | ||||
|  | ||||
| PROTO = \ | ||||
| 	$(wildcard data/proto/*.proto) | ||||
|  | ||||
| PATCHES = \ | ||||
| 	$(wildcard data/patches/*.patch) | ||||
|  | ||||
| @@ -160,6 +163,9 @@ install_pkg: | ||||
| 	install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches | ||||
| 	install $(FILEMODE) $(PATCHES) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches | ||||
|  | ||||
| 	install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)/proto | ||||
| 	install $(FILEMODE) $(PROTO) $(DESTDIR)$(DATADIR)/$(TOOLS)/proto | ||||
|  | ||||
| install_cpio: | ||||
| 	+make CPIODIR=$(CPIODIR) DESTDIR=$(DESTDIR) -C initcpio install | ||||
|  | ||||
|   | ||||
| @@ -364,23 +364,19 @@ while read -r src target fstype opts fsroot; do | ||||
|         pass=0 | ||||
|     fi | ||||
|  | ||||
|     if [[ $fsroot != / ]]; then | ||||
|         if [[ $fstype = btrfs ]]; then | ||||
|             opts+=,subvol=${fsroot#/} | ||||
|         else | ||||
|             # it's a bind mount | ||||
|             src=$(findmnt -funcevo TARGET "$src")$fsroot | ||||
|             if [[ $src -ef $target ]]; then | ||||
|                 # hrmm, this is weird. we're probably looking at a file or directory | ||||
|                 # that was bound into a chroot from the host machine. Ignore it, | ||||
|                 # because this won't actually be a valid mount. Worst case, the user | ||||
|                 # just re-adds it. | ||||
|                 continue | ||||
|             fi | ||||
|             fstype=none | ||||
|             opts+=,bind | ||||
|             pass=0 | ||||
|     if [[ $fsroot != / && $fstype != btrfs ]]; then | ||||
|         # it's a bind mount | ||||
|         src=$(findmnt -funcevo TARGET "$src")$fsroot | ||||
|         if [[ $src -ef $target ]]; then | ||||
|             # hrmm, this is weird. we're probably looking at a file or directory | ||||
|             # that was bound into a chroot from the host machine. Ignore it, | ||||
|             # because this won't actually be a valid mount. Worst case, the user | ||||
|             # just re-adds it. | ||||
|             continue | ||||
|         fi | ||||
|         fstype=none | ||||
|         opts+=,bind | ||||
|         pass=0 | ||||
|     fi | ||||
|  | ||||
|     # filesystem quirks | ||||
|   | ||||
| @@ -40,7 +40,11 @@ compare_m(){ | ||||
|                 msg_row_yellow "${table}" "${a}" "${b}" "$pkg" "$archver" "$artixver" "${group#*-}" | ||||
|             else | ||||
|                 msg_row_green "${table}" "${a}" "${b}" "$pkg" "$archver" "$artixver" "${group#*-}" | ||||
|                 [[ -n "$archrepo" ]] && write_list "${a}:${b}:$pkg" pkg_moves | ||||
|                 if [[ -n "$archrepo" ]]; then | ||||
|                     write_list "${a}:${b}:$pkg" pkg_moves | ||||
|                 else | ||||
|                     write_list "@repo@:${b}:$pkg" artix | ||||
|                 fi | ||||
|             fi | ||||
|         ;; | ||||
|     esac | ||||
| @@ -142,6 +146,7 @@ show_downgrades_table(){ | ||||
| show_move_table(){ | ||||
|     show_compare_header | ||||
|     remove_list pkg_moves | ||||
|     remove_list artix | ||||
|     tree_loop compare_move | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -13,6 +13,7 @@ | ||||
| #         packages-openrc | ||||
| #         packages-runit | ||||
| #         packages-s6 | ||||
| #         packages-66 | ||||
| #         packages-python | ||||
| #         packages-perl | ||||
| #         packages-java | ||||
|   | ||||
							
								
								
									
										38
									
								
								data/proto/PKGBUILD.openrc.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								data/proto/PKGBUILD.openrc.proto
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| # Maintainer: Your Name <youremail@domain.com> | ||||
|  | ||||
| pkgname=NAME-openrc | ||||
| pkgver=VERSION | ||||
| pkgrel=1 | ||||
| epoch= | ||||
| pkgdesc="Openrc NAME init script" | ||||
| arch=('any') | ||||
| url="https://gitea.artixlinux.org/artixlinux/packages-openrc" | ||||
| license=('GPL2') | ||||
| groups=() | ||||
| depends=("openrc" "NAME") | ||||
| makedepends=() | ||||
| checkdepends=() | ||||
| optdepends=() | ||||
| provides=("init-NAME") | ||||
| conflicts=("init-NAME") | ||||
| replaces=() | ||||
| backup=() | ||||
| options=() | ||||
| install= | ||||
| changelog= | ||||
| source=(NAME.{confd,initd}) | ||||
| sha256sums=() | ||||
|  | ||||
| _inst_openrc() { | ||||
|     local sv="$1" | ||||
|     if [ -f "${srcdir}/$sv".confd ]; then | ||||
|         install -Dm644 "${srcdir}/$sv".confd "${pkgdir}"/etc/conf.d/"$sv" | ||||
|     fi | ||||
|     if [ -f "${srcdir}/$sv".initd ]; then | ||||
|         install -Dm755 "${srcdir}/$sv".initd "${pkgdir}"/etc/init.d/"$sv" | ||||
|     fi | ||||
| } | ||||
|  | ||||
| package() { | ||||
|     _inst_openrc "NAME" | ||||
| } | ||||
							
								
								
									
										41
									
								
								data/proto/PKGBUILD.runit.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								data/proto/PKGBUILD.runit.proto
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| # Maintainer: Your Name <youremail@domain.com> | ||||
|  | ||||
| pkgname=NAME-runit | ||||
| pkgver=VERSION | ||||
| pkgrel=1 | ||||
| epoch= | ||||
| pkgdesc="Runit NAME init script" | ||||
| arch=('any') | ||||
| url="https://gitea.artixlinux.org/artixlinux/packages-runit" | ||||
| license=('GPL2') | ||||
| groups=() | ||||
| depends=("runit" "NAME") | ||||
| makedepends=() | ||||
| checkdepends=() | ||||
| optdepends=() | ||||
| provides=("init-NAME") | ||||
| conflicts=("init-NAME") | ||||
| replaces=() | ||||
| backup=() | ||||
| options=() | ||||
| install= | ||||
| changelog= | ||||
| source=(NAME.{run,finish,check}) | ||||
| sha256sums=() | ||||
|  | ||||
| _inst_runit() { | ||||
|     local sv="$1" | ||||
|     if [ -f "${srcdir}/$sv".conf ]; then | ||||
|         install -Dm644 "${srcdir}/$sv".conf "${pkgdir}"/etc/runit/sv/"$sv"/conf | ||||
|     fi | ||||
|  | ||||
|     for f in run finish check; do | ||||
|         if [ -f "${srcdir}/$sv.$f" ]; then | ||||
|             install -Dm755 "${srcdir}/$sv.$f" "${pkgdir}"/etc/runit/sv/"$sv/$f" | ||||
|         fi | ||||
|     done | ||||
| } | ||||
|  | ||||
| package() { | ||||
|     _inst_runit "NAME" | ||||
| } | ||||
							
								
								
									
										39
									
								
								data/proto/PKGBUILD.s6.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								data/proto/PKGBUILD.s6.proto
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| # Maintainer: Your Name <youremail@domain.com> | ||||
|  | ||||
| pkgname=NAME-s6 | ||||
| pkgver=VERSION | ||||
| pkgrel=1 | ||||
| epoch= | ||||
| pkgdesc="S6 NAME init script" | ||||
| arch=('any') | ||||
| url="https://gitea.artixlinux.org/artixlinux/packages-s6" | ||||
| license=('GPL2') | ||||
| groups=() | ||||
| depends=("s6-base" "NAME") | ||||
| makedepends=() | ||||
| checkdepends=() | ||||
| optdepends=() | ||||
| provides=("init-NAME") | ||||
| conflicts=("init-NAME") | ||||
| replaces=() | ||||
| backup=() | ||||
| options=() | ||||
| install= | ||||
| changelog= | ||||
| source=(NAME.{dependencies,down,up,type}) | ||||
| sha256sums=() | ||||
|  | ||||
|  | ||||
| _inst_s6(){ | ||||
|     local sv="$1" | ||||
|     for f in dependencies down type up; do | ||||
|         if [ -f "${srcdir}/$sv.$f" ]; then | ||||
|             install -Dm644 "${srcdir}/$sv.$f" "${pkgdir}"/etc/s6/sv/"$sv/$f" | ||||
|         fi | ||||
|     done | ||||
| } | ||||
|  | ||||
| package() { | ||||
|     _inst_s6 "NAME" | ||||
| } | ||||
|  | ||||
							
								
								
									
										34
									
								
								data/proto/PKGBUILD.suite66.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								data/proto/PKGBUILD.suite66.proto
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| # Maintainer: Your Name <youremail@domain.com> | ||||
|  | ||||
| pkgname=NAME-66 | ||||
| pkgver=VERSION | ||||
| pkgrel=1 | ||||
| epoch= | ||||
| pkgdesc="Suite66 NAME init script" | ||||
| arch=('any') | ||||
| url="https://gitea.artixlinux.org/artixlinux/packages-66" | ||||
| license=('GPL2') | ||||
| groups=() | ||||
| depends=("suite66-base" "NAME") | ||||
| makedepends=() | ||||
| checkdepends=() | ||||
| optdepends=() | ||||
| provides=("init-NAME") | ||||
| conflicts=("init-NAME") | ||||
| replaces=() | ||||
| backup=() | ||||
| options=() | ||||
| install= | ||||
| changelog= | ||||
| source=(NAME) | ||||
| sha256sums=() | ||||
|  | ||||
| _inst_66() { | ||||
|     local sv="$1" | ||||
|     install -Dm644 "$sv" -t "${pkgdir}"/etc/66/service | ||||
| } | ||||
|  | ||||
| package() { | ||||
|     _inst_66 "NAME" | ||||
| } | ||||
|  | ||||
| @@ -33,7 +33,7 @@ write_services_s6_conf(){ | ||||
|  | ||||
| write_services_66_conf(){ | ||||
|     local conf="$1"/services-66.conf | ||||
|     write_services_conf 'svDir' '/etc/66/service' 'dbDir' '/run/66/tree' > "$conf" | ||||
|     write_services_conf 'svDir' '/etc/66/service' 'runsvDir' '/var/lib/66/system' > "$conf" | ||||
| } | ||||
|  | ||||
| write_postcfg(){ | ||||
|   | ||||
| @@ -47,9 +47,9 @@ add_svc_66(){ | ||||
|     local mnt="$1" names="$2" | ||||
|     chroot "$mnt" 66-tree -cnE root &>/dev/null | ||||
|     for svc in $names; do | ||||
|         if [[ -f $mnt/etc/66/service/$svc ]]; then | ||||
|             chroot "$mnt" 66-enable -t root $svc &>/dev/null | ||||
|             chroot "$mnt" 66-start -t root $svc &>/dev/null | ||||
|         if [[ -f "$mnt"/etc/66/service/"$svc" ]]; then | ||||
|             msg2 "Setting %s: [%s]" "${INITSYS}" "$svc" | ||||
|             chroot "$mnt" 66-enable -t root "$svc" &>/dev/null | ||||
|         fi | ||||
|     done | ||||
| } | ||||
|   | ||||
| @@ -41,7 +41,7 @@ find_pkg(){ | ||||
| tree_loop(){ | ||||
|     local func="$1" pkgs | ||||
|     for tree in "${ARTIX_TREE[@]}"; do | ||||
|         pkgs=$(find "${TREE_DIR_ARTIX}/$tree" -name repos -o -name "$CARCH") | ||||
|         pkgs=$(find "${TREE_DIR_ARTIX}/$tree" -name repos -o -name "$CARCH" | sort) | ||||
|         for _package in ${pkgs}; do | ||||
|             "$func" "$_package" | ||||
|         done | ||||
|   | ||||
| @@ -31,7 +31,7 @@ load_pkg_config(){ | ||||
|         python-{world,galaxy} | ||||
|     ) | ||||
|  | ||||
|     local init_tree=(packages-{openrc,runit,s6}) | ||||
|     local init_tree=(packages-{openrc,runit,s6,66}) | ||||
|  | ||||
|     local desktop_tree=( | ||||
|         packages-{kf5,plasma,kde,qt6} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user