diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-04 06:12:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-04 06:12:14 +0000 |
commit | 8fbf0baee6a6b82876d43cef4abc34d021252d25 (patch) | |
tree | 23103fd1ff0aae03ab20229a035573c1df16a5fa /src/backend/functions_makepkg.sh | |
parent | 8d25c02e51386bb0f463349e85400df9e07d94a7 (diff) |
add Makefilev1.1710
Diffstat (limited to 'src/backend/functions_makepkg.sh')
-rw-r--r-- | src/backend/functions_makepkg.sh | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/backend/functions_makepkg.sh b/src/backend/functions_makepkg.sh deleted file mode 100644 index 1c16d45..0000000 --- a/src/backend/functions_makepkg.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -jailpkgprep () { - while : true ; do - if [[ ! -d "$ropath" || ! -d "$rwpath" || ! -d "$workpath" || ! -d "$overlaypath" ]] ; then - export local i - for i in "$ropath" "$rwpath" "$workpath" "$overlaypath" ; do - mkdir "$i" - done - jailpkgmnt - break - elif [[ -d "$ropath" || -d "$rwpath" || -d "$workpath" || -d "$overlaypath" ]] ; then - jailpkgdmnt - export local j - for j in "$ropath" "$rwpath" "$workpath" "$overlaypath" ; do - rm -rf "$j" - done - continue - fi - done -} - -jailpkgmnt () { - mount -t squashfs "$jailx64" "$ropath" - mount -t overlay -o lowerdir="$ropath",upperdir="$rwpath",workdir="$workpath" overlay "$overlaypath" - mount -o bind packages "$overlaypath"/var/cache/packages - mount -o bind distfiles "$overlaypath"/var/cache/distfiles - mount -t proc proc "$overlaypath"/proc - mount -t sysfs sysfs "$overlaypath"/sys - mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$overlaypath"/dev - mount -t devpts -o nosuid,noexec,relatime,gid=5,mode=620 none "$overlaypath"/dev/pts - mount -t tmpfs -o nosuid,nodev none "$overlaypath"/dev/shm -} - -jailpkgdmnt () { - umount -l "$overlaypath"/proc > /dev/null 2>&1 - umount -l "$overlaypath"/sys > /dev/null 2>&1 - umount -l "$overlaypath"/dev/pts > /dev/null 2>&1 - umount -l "$overlaypath"/dev/shm > /dev/null 2>&1 - umount -l "$overlaypath"/dev > /dev/null 2>&1 - umount -l "$overlaypath"/var/cache/packages > /dev/null 2>&1 - umount -l "$overlaypath"/var/cache/distfiles > /dev/null 2>&1 - umount -l "$overlaypath" > /dev/null 2>&1 - umount -l "$ropath" > /dev/null 2>&1 -} - -jailpkgsrcmode () { - chroot "$overlaypath" su - "$jailuser" -c "$jailsrcmodecmd" -} - -jailpkgbuild () { - chroot "$overlaypath" su - "$jailuser" -c "$jailportagecmd" -} - -jailpkgstart () { - einfo "Oh no, I'm in jail!" - chroot "$overlaypath" su - "$jailuser" -} - -makepkg () { - checkifroot - checkjailsum - jailpkgprep - jailpkgsrcmode - jailpkgbuild - jailpkgstart - jailpkgdmnt -} |