From 6e8120eb979dcb498297ad6be8144ebf9be79cdd Mon Sep 17 00:00:00 2001 From: Kevin Figueroa Date: Sat, 10 Feb 2024 20:16:07 -0600 Subject: [PATCH] Remove LPKG package As LPKG is designed with Loc-OS in mind, packages, updates and requirements are also made with that in mind. With the enough effort, it may turn into a stable experience for Cereus, but currently is a very risky experience. So, to avoid unwanted system breakages and because of my lack of time to maintain it and a whole list with dependencies, I'm removing it. I'm moving removed templates to a local repository which I may make public. LPKG could come back to main repository, but it isn't a priority right now. --- srcpkgs/lpkg/INSTALL.msg | 13 --------- srcpkgs/lpkg/REMOVE | 24 ---------------- srcpkgs/lpkg/REMOVE.msg | 2 -- srcpkgs/lpkg/template | 59 ---------------------------------------- 4 files changed, 98 deletions(-) delete mode 100644 srcpkgs/lpkg/INSTALL.msg delete mode 100644 srcpkgs/lpkg/REMOVE delete mode 100644 srcpkgs/lpkg/REMOVE.msg delete mode 100644 srcpkgs/lpkg/template diff --git a/srcpkgs/lpkg/INSTALL.msg b/srcpkgs/lpkg/INSTALL.msg deleted file mode 100644 index 132e8b1..0000000 --- a/srcpkgs/lpkg/INSTALL.msg +++ /dev/null @@ -1,13 +0,0 @@ -==> IMPORTANT NOTE: -LPKG is a low-level package manager. This means that it will not install automatically dependencies. -Instead of that, you will have to look yourself for them. - -At Cereus Linux Team we'll provide some packages dependencies, but this may be outdated over the time. -You can find our list at: https://github.com/CereusLinuxProject/lpkg-list - -==> WARNING: -* You MUST NOT install a package twice in LPKG and XBPS, this will cause conflicts and probably BREAK YOUR SYSTEM. -* To avoid conflicts, when removing LPKG it will automatically remove all your LPKG packages. - - - diff --git a/srcpkgs/lpkg/REMOVE b/srcpkgs/lpkg/REMOVE deleted file mode 100644 index 5c2f0f9..0000000 --- a/srcpkgs/lpkg/REMOVE +++ /dev/null @@ -1,24 +0,0 @@ -# REMOVE -case "$ACTION" in - -pre) - -# -# Remove all installed LPKG packages to avoid conflicts -# - - if [ "$UPDATE" = "no" ]; then - for pkg in $(lpkg -i | cut -d "-" -f1 | tail -n +3); - do lpkg remove ${pkg} - done - fi - ;; -post) - -# -# After removing opt/Loc-OS-LPKG, xbps removes opt if empty! -# This script restores opt -# - mkdir -p opt - ;; -esac diff --git a/srcpkgs/lpkg/REMOVE.msg b/srcpkgs/lpkg/REMOVE.msg deleted file mode 100644 index b4bf063..0000000 --- a/srcpkgs/lpkg/REMOVE.msg +++ /dev/null @@ -1,2 +0,0 @@ -==> IMPORTANT NOTE: -To avoid conflicts, before XBPS removes LPKG it will uninstall all packages installed through it. diff --git a/srcpkgs/lpkg/template b/srcpkgs/lpkg/template deleted file mode 100644 index 166554d..0000000 --- a/srcpkgs/lpkg/template +++ /dev/null @@ -1,59 +0,0 @@ -# Template file for 'lpkg' -pkgname=lpkg -version=10.1 -revision=3 -archs="x86_64 i686" -build_style=fetch -hostmakedepends="bsdtar wget" -depends="pv psmisc" -repository="cereus-extra" -short_desc="Low-level package manager developed by Loc-OS team" -maintainer="Kevin Figueroa " -license="GPL-3.0" -homepage="https://gitlab.com/loc-os_linux/updates" -nostrip=yes -checksum=ede89ebac1fa7d088b7e86b784cc911d2ad8965f6b0e46cd1993c512d937caf9 -distfiles="https://github.com/CereusLinuxProject/lpkg-list/releases/download/${version}/${pkgname}.tar.gz" - -do_install() { - # Create dirs - for dir in opt/Loc-OS-LPKG usr/{bin,share/icons}; do - vmkdir ${dir} - done - - # Extract distfile - bsdtar -xf lpkg.tar.gz - - # Copy lpkg and icons to destdir - vcopy Loc-OS-LPKG /opt/ - vcopy Loc-OS-LPKG/usr/share/icons/* usr/share/icons/ - - # Link lpkg binaries to PATH - ln -sf /opt/Loc-OS-LPKG/usr/sbin/{removelpkg,lpkg,installlpkg,createlpkg} ${DESTDIR}/usr/bin/ - - # Remove unnecesary binary - rm ${DESTDIR}/opt/Loc-OS-LPKG/usr/bin/killall - - # Define repository list depending of target architecture - if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then - _repo="locosporlinux/lpkg-list" - - # Install desktop launcher - vinstall Loc-OS-LPKG/LocOSLpkg.desktop 0644 usr/share/applications/ lpkggui.desktop - - elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then - _repo="loc-os_linux/lpkg-list32" - - # Currently the LPKG GUI is built only for x86_64. In future releases this won't be necessary. - rm ${DESTDIR}/opt/Loc-OS-LPKG/LpkgGui - fi - - # Fetch repository list - wget "https://gitlab.com/${_repo}/-/raw/main/ListGitLabLocOS.LpkgRepo" - - # Install repository list - vinstall ListGitLabLocOS.LpkgRepo 0644 opt/Loc-OS-LPKG/Repos/ - - # Install license - vlicense Loc-OS-LPKG/LICENSE -}