Skip to content

Commit a0dcb42

Browse files
authored
Merge pull request #10949 from chewitt/apt-get
busybox: simplify and rework apt-get script to handle more package managers
2 parents 1302609 + cc78ce4 commit a0dcb42

3 files changed

Lines changed: 19 additions & 27 deletions

File tree

packages/sysutils/busybox/package.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ makeinstall_target() {
115115
ln -sf dthelper ${INSTALL}/usr/bin/dtsoc
116116
cp ${PKG_DIR}/scripts/ledfix ${INSTALL}/usr/bin
117117
cp ${PKG_DIR}/scripts/lsb_release ${INSTALL}/usr/bin/
118-
cp ${PKG_DIR}/scripts/apt-get ${INSTALL}/usr/bin/
118+
cp ${PKG_DIR}/scripts/pkgapp ${INSTALL}/usr/bin/
119+
ln -sf pkgapp ${INSTALL}/usr/bin/apt
120+
ln -sf pkgapp ${INSTALL}/usr/bin/apt-get
121+
ln -sf pkgapp ${INSTALL}/usr/bin/dnf
122+
ln -sf pkgapp ${INSTALL}/usr/bin/rpm
123+
ln -sf pkgapp ${INSTALL}/usr/bin/yum
119124
cp ${PKG_DIR}/scripts/sudo ${INSTALL}/usr/bin/
120125
cp ${PKG_DIR}/scripts/pastebinit ${INSTALL}/usr/bin/
121126
sed -e "s/@DISTRONAME@-@OS_VERSION@/${DISTRONAME}-${OS_VERSION}/g" \

packages/sysutils/busybox/scripts/apt-get

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# SPDX-License-Identifier: GPL-2.0-or-later
4+
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
5+
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
6+
7+
PKGAPP=$(basename "$0")
8+
9+
message="$message\n '${PKGAPP}' package management is not supported"
10+
message="$message\n "
11+
12+
echo -e $message
13+
exit 1

0 commit comments

Comments
 (0)