-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gunjan Gupta <[email protected]>
- Loading branch information
Showing
3 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
PKG_NAME="fenix-config" | ||
PKG_VERSION="de4772153a306df6fc25e8e9c06281f208479017" | ||
PKG_SHA256="3b201dd8425c50dad89be372e649cf7f510e5f3e4eda9c7b633b6913635bbd47" | ||
PKG_SOURCE_DIR="${PKG_NAME}-${PKG_VERSION}*" | ||
PKG_SITE="$GITHUB_URL/numbqq/${PKG_NAME}" | ||
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz" | ||
PKG_ARCH="arm aarch64" | ||
PKG_LICENSE="GPL" | ||
PKG_SHORTDESC="Linux configuration utility" | ||
PKG_SOURCE_NAME="${PKG_NAME}-${PKG_VERSION}.tar.gz" | ||
PKG_NEED_BUILD="YES" | ||
|
||
|
||
make_target() { | ||
local pkgdir="$BUILD_IMAGES/.tmp/${PKG_NAME}_${VERSION}_${DISTRIB_ARCH}" | ||
rm -rf $pkgdir | ||
mkdir -p $pkgdir/DEBIAN | ||
|
||
# set up control file | ||
cat <<-EOF > $pkgdir/DEBIAN/control | ||
Package: ${PKG_NAME} | ||
Version: ${VERSION} | ||
Architecture: all | ||
Maintainer: Khadas <[email protected]> | ||
Depends: bash, bc, build-essential, curl, dialog, debconf, debconf-utils, dirmngr, expect, html2text, iperf3, jq, psmisc, pv, software-properties-common, unzip, zip | ||
Suggests: libpam-google-authenticator, qrencode, network-manager | ||
Section: utils | ||
Priority: optional | ||
Description: Fenix configuration utility | ||
EOF | ||
|
||
mkdir -p "${pkgdir}"/usr/{bin,lib/fenix-config,sbin} | ||
install -m 755 fenix-config "${pkgdir}"/usr/sbin/fenix-config | ||
install -m 644 fenix-config-jobs "${pkgdir}"/usr/lib/fenix-config/jobs.sh | ||
install -m 644 fenix-config-submenu "${pkgdir}"/usr/lib/fenix-config/submenu.sh | ||
install -m 644 fenix-config-functions "${pkgdir}"/usr/lib/fenix-config/functions.sh | ||
install -m 644 fenix-config-functions-network "${pkgdir}"/usr/lib/fenix-config/functions-network.sh | ||
install -m 755 softy "${pkgdir}"/usr/sbin/softy | ||
|
||
ln -sf /usr/sbin/fenix-config "${pkgdir}"/usr/bin/fenix-config | ||
ln -sf /usr/sbin/softy "${pkgdir}"/usr/bin/softy | ||
|
||
info_msg "Building package: $pkgname" | ||
fakeroot dpkg-deb -b -Zxz $pkgdir ${pkgdir}.deb | ||
|
||
# Cleanup | ||
rm -rf $pkgdir | ||
} | ||
|
||
makeinstall_target() { | ||
local pkgdir="$BUILD_IMAGES/.tmp/${PKG_NAME}_${VERSION}_${DISTRIB_ARCH}" | ||
mkdir -p $BUILD_DEBS/$VERSION/$KHADAS_BOARD/${DISTRIBUTION}-${DISTRIB_RELEASE}/${PKG_NAME}/ | ||
# Remove old debs | ||
rm -rf $BUILD_DEBS/$VERSION/$KHADAS_BOARD/${DISTRIBUTION}-${DISTRIB_RELEASE}/${PKG_NAME}/* | ||
cp ${pkgdir}.deb $BUILD_DEBS/$VERSION/$KHADAS_BOARD/${DISTRIBUTION}-${DISTRIB_RELEASE}/${PKG_NAME}/ | ||
|
||
# Cleanup | ||
rm -f ${pkgdir}.deb | ||
} |