forked from artix/artools
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/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
|
||||||
|
|
||||||
|
@@ -364,10 +364,7 @@ while read -r src target fstype opts fsroot; do
|
|||||||
pass=0
|
pass=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $fsroot != / ]]; then
|
if [[ $fsroot != / && $fstype != btrfs ]]; then
|
||||||
if [[ $fstype = btrfs ]]; then
|
|
||||||
opts+=,subvol=${fsroot#/}
|
|
||||||
else
|
|
||||||
# it's a bind mount
|
# it's a bind mount
|
||||||
src=$(findmnt -funcevo TARGET "$src")$fsroot
|
src=$(findmnt -funcevo TARGET "$src")$fsroot
|
||||||
if [[ $src -ef $target ]]; then
|
if [[ $src -ef $target ]]; then
|
||||||
@@ -381,7 +378,6 @@ while read -r src target fstype opts fsroot; do
|
|||||||
opts+=,bind
|
opts+=,bind
|
||||||
pass=0
|
pass=0
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# filesystem quirks
|
# filesystem quirks
|
||||||
case $fstype in
|
case $fstype in
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
# packages-openrc
|
# packages-openrc
|
||||||
# packages-runit
|
# packages-runit
|
||||||
# packages-s6
|
# packages-s6
|
||||||
|
# packages-66
|
||||||
# packages-python
|
# packages-python
|
||||||
# packages-perl
|
# packages-perl
|
||||||
# packages-java
|
# 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(){
|
write_services_66_conf(){
|
||||||
local conf="$1"/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(){
|
write_postcfg(){
|
||||||
|
@@ -47,9 +47,9 @@ add_svc_66(){
|
|||||||
local mnt="$1" names="$2"
|
local mnt="$1" names="$2"
|
||||||
chroot "$mnt" 66-tree -cnE root &>/dev/null
|
chroot "$mnt" 66-tree -cnE root &>/dev/null
|
||||||
for svc in $names; do
|
for svc in $names; do
|
||||||
if [[ -f $mnt/etc/66/service/$svc ]]; then
|
if [[ -f "$mnt"/etc/66/service/"$svc" ]]; then
|
||||||
chroot "$mnt" 66-enable -t root $svc &>/dev/null
|
msg2 "Setting %s: [%s]" "${INITSYS}" "$svc"
|
||||||
chroot "$mnt" 66-start -t root $svc &>/dev/null
|
chroot "$mnt" 66-enable -t root "$svc" &>/dev/null
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
|
@@ -31,7 +31,7 @@ load_pkg_config(){
|
|||||||
python-{world,galaxy}
|
python-{world,galaxy}
|
||||||
)
|
)
|
||||||
|
|
||||||
local init_tree=(packages-{openrc,runit,s6})
|
local init_tree=(packages-{openrc,runit,s6,66})
|
||||||
|
|
||||||
local desktop_tree=(
|
local desktop_tree=(
|
||||||
packages-{kf5,plasma,kde,qt6}
|
packages-{kf5,plasma,kde,qt6}
|
||||||
|
Reference in New Issue
Block a user