diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-04 02:22:46 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-04 02:22:46 (EDT) |
commit | 8d3d7d3942fd7621a378c613a3a7b255571fa3a7 (patch) | |
tree | e2cc10a434254b10d1cfeee1904bc87e8dd6482d |
Initial commit
-rw-r--r-- | .gitignore | 11 | ||||
-rwxr-xr-x | build | 23 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 3 | ||||
-rw-r--r-- | format | 1 | ||||
-rw-r--r-- | opkg-lede.pkg/control | 10 | ||||
-rw-r--r-- | opkg-lede.pkg/docs | 0 | ||||
-rw-r--r-- | opkg-lede.pkg/files | 3 | ||||
-rw-r--r-- | opkg-lede.pkg/postinst | 5 | ||||
-rw-r--r-- | source.mk | 13 |
10 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..213a9bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Swap and backup files +.*.sw* +.sw* +*~ +Session.vim + +# Source archives +*-*.orig.tar.* + +# Work area +tmp/ @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +include ../source.mk + +nop: + +build: + (cd src && cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \ + -D STATIC_UBOX:BOOL=ON .) + oh-autobuild + touch $@ + +install: build + oh-autoinstall + mv dest/usr/bin/opkg-cl dest/usr/bin/opkg-lede + @# opkg-lede's CMake build system doesn't install these... + cp src/utils/opkg-key dest/usr/bin/opkg-key + sed 's|@opkglibdir@|/var/lib|g' src/utils/update-alternatives.in \ + >dest/usr/bin/update-alternatives + oh-fixperms + oh-strip + oh-installfiles + oh-shlibdeps diff --git a/changelog b/changelog new file mode 100644 index 0000000..2e502d0 --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +opkg-lede (0+git20190131.d4ba162-1) trunk + + * Initial release. + + -- Patrick McDermott <patrick.mcdermott@libiquity.com> Thu, 04 Apr 2019 01:42:58 -0400 @@ -0,0 +1,3 @@ +Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com> +Build-Depends: opkbuild (>= 4.0.2), opkhelper-3.0 (>= 3.0.2), cmake, libubox-dev +Homepage: https://git.openwrt.org/?p=project/opkg-lede.git;a=summary @@ -0,0 +1 @@ +2.0 diff --git a/opkg-lede.pkg/control b/opkg-lede.pkg/control new file mode 100644 index 0000000..d610831 --- /dev/null +++ b/opkg-lede.pkg/control @@ -0,0 +1,10 @@ +Architecture: any +Platform: all +Depends: usign, ${Shlib-Depends} +Description: Lightweight package management system - LEDE/OpenWrt fork + The opkg package management system handles installation and removal of packages + on a system. It can recursively follow dependencies and download all packages + necessary to install a particular package. + . + This is the LEDE/OpenWrt fork of opkg, which aims to be more lightweight in its + own code and its dependencies than the original. diff --git a/opkg-lede.pkg/docs b/opkg-lede.pkg/docs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/opkg-lede.pkg/docs diff --git a/opkg-lede.pkg/files b/opkg-lede.pkg/files new file mode 100644 index 0000000..b7d3b52 --- /dev/null +++ b/opkg-lede.pkg/files @@ -0,0 +1,3 @@ +/usr/bin/opkg-key +/usr/bin/opkg-lede +/usr/bin/update-alternatives diff --git a/opkg-lede.pkg/postinst b/opkg-lede.pkg/postinst new file mode 100644 index 0000000..187a8cc --- /dev/null +++ b/opkg-lede.pkg/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ x"${1}" = x'configure' ]; then + update-alternatives --install /usr/bin/opkg opkg /usr/bin/opkg-lede 30 +fi diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..5718bec --- /dev/null +++ b/source.mk @@ -0,0 +1,13 @@ +# Reference only -- requires git, not yet in ProteanOS + +upstream_commit = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ + sed 's/^.*~git........\.\([0-9a-f]*\).*$$/\1/') +upstream_git_uri = https://git.openwrt.org/project/$(OPK_SOURCE).git +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.xz + +$(source_archive): + git clone $(upstream_git_uri) $(OPK_SOURCE)/ + (cd $(OPK_SOURCE)/ && git archive --format=tar --prefix=$(OPK_SOURCE)/ \ + "$(upstream_commit)") | xz >$@ + +source: $(source_archive) |