Compare commits
	
		
			9 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 33685e164d | |||
| f419683149 | |||
| 54f31daccb | |||
| be0cfb636e | |||
| 4108a038fa | |||
| 4634c78520 | |||
| a9409d3837 | |||
| 02c3a079a2 | |||
| 72993117fa | 
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							| @@ -87,6 +87,9 @@ PKG_DATA = \ | |||||||
| 	data/pacman/makepkg.conf \ | 	data/pacman/makepkg.conf \ | ||||||
| 	data/valid-names.conf | 	data/valid-names.conf | ||||||
|  |  | ||||||
|  | PROTO = \ | ||||||
|  | 	$(wildcard data/proto/*.proto) | ||||||
|  |  | ||||||
| PATCHES = \ | PATCHES = \ | ||||||
| 	$(wildcard data/patches/*.patch) | 	$(wildcard data/patches/*.patch) | ||||||
|  |  | ||||||
| @@ -160,6 +163,9 @@ install_pkg: | |||||||
| 	install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches | 	install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches | ||||||
| 	install $(FILEMODE) $(PATCHES) $(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: | install_cpio: | ||||||
| 	+make CPIODIR=$(CPIODIR) DESTDIR=$(DESTDIR) -C initcpio install | 	+make CPIODIR=$(CPIODIR) DESTDIR=$(DESTDIR) -C initcpio install | ||||||
|  |  | ||||||
|   | |||||||
| @@ -40,7 +40,11 @@ compare_m(){ | |||||||
|                 msg_row_yellow "${table}" "${a}" "${b}" "$pkg" "$archver" "$artixver" "${group#*-}" |                 msg_row_yellow "${table}" "${a}" "${b}" "$pkg" "$archver" "$artixver" "${group#*-}" | ||||||
|             else |             else | ||||||
|                 msg_row_green "${table}" "${a}" "${b}" "$pkg" "$archver" "$artixver" "${group#*-}" |                 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 |             fi | ||||||
|         ;; |         ;; | ||||||
|     esac |     esac | ||||||
| @@ -142,6 +146,7 @@ show_downgrades_table(){ | |||||||
| show_move_table(){ | show_move_table(){ | ||||||
|     show_compare_header |     show_compare_header | ||||||
|     remove_list pkg_moves |     remove_list pkg_moves | ||||||
|  |     remove_list artix | ||||||
|     tree_loop compare_move |     tree_loop compare_move | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										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" | ||||||
|  | } | ||||||
|  |  | ||||||
| @@ -41,7 +41,7 @@ find_pkg(){ | |||||||
| tree_loop(){ | tree_loop(){ | ||||||
|     local func="$1" pkgs |     local func="$1" pkgs | ||||||
|     for tree in "${ARTIX_TREE[@]}"; do |     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 |         for _package in ${pkgs}; do | ||||||
|             "$func" "$_package" |             "$func" "$_package" | ||||||
|         done |         done | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user