junest*: prepare for non-root user

This commit is contained in:
Kuoi 2023-05-07 10:14:54 +08:00
parent 328fe4f545
commit 86caa41c50
9 changed files with 196 additions and 0 deletions

View file

@ -0,0 +1,16 @@
pkgname=groot
pkgver=1.0.2
pkgrel=0
arch=('any')
url="https://github.com/fsquillace/groot"
license=('GPL')
groups=('junest-extra')
depends=('coreutils')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
md5sums=('SKIP')
package() {
cd "$srcdir/${pkgname}-${pkgver}"
install -d -m 755 "${pkgdir}/usr/bin"
install -m 755 "${srcdir}/${pkgname}-${pkgver}/bin/groot" ${pkgdir}/usr/bin/groot
}

View file

@ -0,0 +1,13 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: fsquillace/groot
use_max_tag: true

View file

@ -0,0 +1,27 @@
pkgname=junest
pkgver=7.4.4
pkgrel=0
pkgdesc="The Arch Linux based distro that runs upon any Linux distros without root access"
arch=('any')
url="http://fsquillace.github.io/junest-site/"
license=('GPL')
depends=('pacman')
makedepends=('git')
install=junest.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/fsquillace/junest/archive/refs/tags/${pkgver}.tar.gz")
md5sums=('SKIP')
noextract=()
package() {
cd "$srcdir/${pkgname}-${pkgver}"
install -d -m 755 "${pkgdir}/opt/"
cp -R "${srcdir}/${pkgname}-${pkgver}" "${pkgdir}/opt/${pkgname}"
install -d -m 755 "${pkgdir}/usr/bin"
ln -s /opt/${pkgname}/bin/${pkgname} ${pkgdir}/usr/bin/${pkgname}
ln -s /opt/${pkgname}/bin/sudoj ${pkgdir}/usr/bin/sudoj
}

View file

@ -0,0 +1,14 @@
_msg(){
:
}
# arg 1: the new package version
post_install() {
_msg
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
_msg
}

View file

@ -0,0 +1,13 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: fsquillace/junest
use_max_tag: true

View file

@ -0,0 +1,44 @@
# Maintainer: Martin Rys <rys.pw/contact>
# Previous maintainer: navigaid <navigaid@gmail.com>
pkgname=proot
_pkgname=proot
groups=('junest-extra')
pkgver=5.3.1
pkgrel=0
pkgdesc="chroot, mount --bind, and binfmt_misc without privilege/setup"
arch=('i686' 'x86_64')
url="https://proot-me.github.io/"
license=('GPL')
provides=('proot')
depends=('talloc')
makedepends=('python-docutils' 'libxslt')
source=(${pkgname}-v${pkgver}.tar.gz::https://github.com/cedric-vincent/${_pkgname}/archive/v${pkgver}.tar.gz)
sha256sums=('966afe32bf9a9d0e80836a8874d4dd829c51750060d9e0f30d330b1ed7eec8c2')
build() {
cd "${srcdir}"/${_pkgname}-${pkgver}/src
make -f GNUmakefile
cd "${srcdir}"/${_pkgname}-${pkgver}/doc
make -f GNUmakefile
}
package() {
cd "${srcdir}"/${_pkgname}-${pkgver}
install -m755 -d "${pkgdir}"/usr/bin
install -m755 src/${pkgname} "${pkgdir}"/usr/bin
install -m755 -d "${pkgdir}"/usr/share/man/man1/
install -m644 -T doc/proot/man.1 "${pkgdir}"/usr/share/man/man1/${pkgname}.1
install -m755 -d "${pkgdir}"/usr/share/doc/proot/
install -m644 CHANGELOG.rst "${pkgdir}"/usr/share/doc/proot
install -m644 doc/proot/index.html "${pkgdir}"/usr/share/doc/proot
install -m644 doc/proot/manual.rst "${pkgdir}"/usr/share/doc/proot
install -m755 -d "${pkgdir}"/usr/share/doc/proot/stylesheets
install -m644 doc/proot/stylesheets/* "${pkgdir}"/usr/share/doc/proot/stylesheets
}

View file

@ -0,0 +1,14 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: cedric-vincent/proot
use_max_tag: true
prefix: 'v'

View file

@ -0,0 +1,42 @@
pkgname=sudo-fake
pkgver=0.1.3
pkgrel=0
pkgdesc="Simple script that bypasses sudo and execute the actual command. Useful for fakeroot environments."
arch=('any')
url="https://github.com/fsquillace/junest-aur-repo/blob/master/pkgs/sudo-fake/"
license=('GPL')
groups=('junest-extra')
depends=('fakeroot' 'fakechroot')
package() {
install -d -m 755 "${pkgdir}/usr/bin/"
cat <<EOF > "${pkgdir}/usr/bin/sudo"
#!/bin/bash
for opt in "\$@"
do
case "\$1" in
--) shift ; break ;;
-*) shift ;;
*) break ;;
esac
done
export FAKEROOTDONTTRYCHOWN=true
if [[ -n "\${@}" ]]
then
if [[ \$FAKECHROOT == true ]]
then
fakechrootcmd=""
else
fakechrootcmd="fakechroot"
fi
if [[ -n \$FAKED_MODE ]]
then
fakerootcmd=""
else
fakerootcmd="fakeroot"
fi
\$fakechrootcmd \$fakerootcmd "\${@}"
fi
EOF
chmod 755 "${pkgdir}/usr/bin/sudo"
}

View file

@ -0,0 +1,13 @@
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
build_prefix: extra-x86_64
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: regex
url: "https://raw.githubusercontent.com/fsquillace/junest-aur-repo/master/pkgs/sudo-fake/PKGBUILD"
regex: 'versioin=([\d.]+\d+)'