diff --git a/common/shlibs b/common/shlibs index f1355527fe9..0b93aaf62e4 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3390,3 +3390,4 @@ libgnuradio-nrsc5-1.0.0git.so.0.0.0 gnuradio-nrsc5-1.0.0_1 libgaminggear.so.0 libgaminggear-0.15.1_1 libgaminggearfx.so.0 libgaminggear-0.15.1_1 libgaminggearwidget.so.0 libgaminggear-0.15.1_1 +libopkg.so.1 libopkg-0.4.0_1 diff --git a/srcpkgs/libopkg b/srcpkgs/libopkg new file mode 120000 index 00000000000..27b913fbf30 --- /dev/null +++ b/srcpkgs/libopkg @@ -0,0 +1 @@ +opkg \ No newline at end of file diff --git a/srcpkgs/libopkg-devel b/srcpkgs/libopkg-devel new file mode 120000 index 00000000000..27b913fbf30 --- /dev/null +++ b/srcpkgs/libopkg-devel @@ -0,0 +1 @@ +opkg \ No newline at end of file diff --git a/srcpkgs/opkg/patches/lock-var-run.patch b/srcpkgs/opkg/patches/lock-var-run.patch new file mode 100644 index 00000000000..68b10f56383 --- /dev/null +++ b/srcpkgs/opkg/patches/lock-var-run.patch @@ -0,0 +1,35 @@ +Source: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/opkg/opkg/0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch?id=7dfee9b78daa5d25551704f27d0228b2c170fbcc +From a4628a6171f393add9a2b287483ca39bb72b4dd6 Mon Sep 17 00:00:00 2001 +From: Jonathan Liu +Date: Mon, 21 Sep 2015 20:23:23 +1000 +Subject: [PATCH] opkg_conf: create opkg.lock in /run instead of /var/run + +This avoids a "Could not unlink" warning when extracting a /var/run +symbolic link pointing to /run from a package as it is unable to +unlink the /var/run directory when it contains opkg.lock. + +This also fixes an issue where /var/run is created as a directory +instead of a symbolic link to /run. + +Upstream-Status: Inappropriate [OE-Specific] +Signed-off-by: Jonathan Liu +--- + libopkg/opkg_conf.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libopkg/opkg_conf.h b/libopkg/opkg_conf.h +index 7bca948..5a1bc44 100644 +--- libopkg/opkg_conf.h ++++ libopkg/opkg_conf.h +@@ -40,7 +40,7 @@ extern "C" { + #define OPKG_CONF_DEFAULT_STATUS_FILE VARDIR "/lib/opkg/status" + #define OPKG_CONF_DEFAULT_CACHE_DIR VARDIR "/cache/opkg" + #define OPKG_CONF_DEFAULT_CONF_FILE_DIR SYSCONFDIR "/opkg" +-#define OPKG_CONF_DEFAULT_LOCK_FILE VARDIR "/run/opkg.lock" ++#define OPKG_CONF_DEFAULT_LOCK_FILE "/run/opkg.lock" + + /* In case the config file defines no dest */ + #define OPKG_CONF_DEFAULT_DEST_NAME "root" +-- +2.5.0 + diff --git a/srcpkgs/opkg/template b/srcpkgs/opkg/template new file mode 100644 index 00000000000..90db5049b5f --- /dev/null +++ b/srcpkgs/opkg/template @@ -0,0 +1,43 @@ +# Template file for 'opkg' +pkgname=opkg +version=0.4.0 +revision=1 +build_style=gnu-configure +configure_args="--enable-sha256 --without-libsolv --with-static-libopkg + $(vopt_enable lz4) $(vopt_if openssl '--enable-openssl --enable-ssl-curl') + $(vopt_enable gpg)" +hostmakedepends="pkg-config libtool automake" +makedepends="libarchive-devel libcurl-devel $(vopt_if gpg gpgme-devel) $(vopt_if lz4 lz4-devel)" +checkdepends="python3" +short_desc="Lightweight package management system, compatible with ipkg" +maintainer="Piraty " +license="GPL-2.0-or-later" +homepage="http://code.google.com/p/opkg/" +distfiles="https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz" +checksum=f6c00515d8a2ad8f6742a8e73830315d1983ed0459cba77c4d656cfc9e7fe6fe + +build_options="gpg lz4 ssl" +build_options_default="ssl" +desc_option_gpg="Enable signature checking with gpgme" +desc_option_ssl="Enable certificate authentication with curl" + +pre_configure() { + autoreconf -isf +} + +libopkg_package() { + short_desc+=" - runtime libraries" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +libopkg-devel_package() { + short_desc+=" - runtime libraries - development files" + depends="libopkg>=${version}_${revision}" + pkg_install() { + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}