mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
6756929b75
Allows us to drop the description backport.
Changes:
e3464d0
db: make repository description an atom instead of allocation
417a93c pkg: truncate apkv3 description to 256 bytes
d26b65d db, audit: remove support for files without embedded checksum
64ff8c7 db: allow files starting with a dot in the root directory of apk3 packages
89e4bf1 db, fs: do not extract devices in --usermode
4050f9e db: fix hardlink handling: root directory and v3 checksums
ade0be3 db, extract: handle file/directory extraction errors more consistently
a4837ae package: don't call make_device_tree when APK_NO_CHROOT is set
1e04115 package: respect libexecdir instead of hard-coding /usr/libexec
76970a9 package: move the location of executable package scripts
19b1df7 blob: refactor apk_blob_for_each_segment into apk_blob_foreach_word
e38d5b5 test: add missing alpine tests makefile
fcd4def test: move vertest to cmocka based unit testing infrastructure
8a13ed9 test: fix solver.sh for parallel use
5add6fc (tag: v3.0.0_pre4) apk-tools-3.0.0_pre4
5dd91e3 db: consider --force-no-chroot when determining /dev/fd availability
d86afde db: print message when a file is written to .apk-new
a5aeb3d test: unify makefile and meson tests
a236fdd pkg: use memfd_create only if target root has dev/fd working
563d364 tests: minor updates to root tests
08b4d21 tests: move solver test data to separate directory
c259642 tests: rework solver tests to not require apk-test binary
d2aaf13 commit: sort matched dependencies on error analysis
98d7196 db: fix permissions of arch file
b231eac db: simplify add_repos_from_file
2a3dbfc db: add and use apk_db_parse_file helper to parse files line by line
c1a3e69 db: validate package arch against compatible arches
Link: https://github.com/openwrt/openwrt/pull/17015
Signed-off-by: Robert Marko <robimarko@gmail.com>
97 lines
2.3 KiB
Makefile
97 lines
2.3 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=apk
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL=https://gitlab.alpinelinux.org/alpine/apk-tools.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_DATE:=2024-11-13
|
|
PKG_SOURCE_VERSION:=e3464d096708b270138653ef93db59134bb24813
|
|
PKG_MIRROR_HASH:=cc633e5c294c9d92391fba5537dfe2f12f82011b55d282beb0d5d7ceba212962
|
|
|
|
PKG_VERSION=3.0.0_pre$(subst -,,$(PKG_SOURCE_DATE))
|
|
|
|
PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_INSTALL:=2
|
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
|
HOST_BUILD_DEPENDS:=lua/host
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
define Package/apk/default
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
TITLE:=apk package manager
|
|
DEPENDS:=+zlib
|
|
URL:=$(PKG_SOURCE_URL)
|
|
PROVIDES:=apk
|
|
endef
|
|
|
|
define Package/apk-mbedtls
|
|
$(Package/apk/default)
|
|
TITLE += (mbedtls)
|
|
DEPENDS +=+libmbedtls
|
|
DEFAULT:=y if USE_APK
|
|
VARIANT:=mbedtls
|
|
DEFAULT_VARIANT:=1
|
|
CONFLICTS:=apk-openssl
|
|
endef
|
|
|
|
define Package/apk-openssl
|
|
$(Package/apk/default)
|
|
TITLE += (openssl)
|
|
DEPENDS +=+libopenssl
|
|
VARIANT:=openssl
|
|
endef
|
|
|
|
MESON_HOST_VARS+=VERSION=$(PKG_VERSION)
|
|
MESON_VARS+=VERSION=$(PKG_VERSION)
|
|
|
|
MESON_COMMON_ARGS = \
|
|
-Dcompressed-help=false \
|
|
-Ddocs=disabled \
|
|
-Dhelp=enabled \
|
|
-Dlua_version=5.1 \
|
|
-Durl_backend=wget \
|
|
-Dzstd=false
|
|
|
|
MESON_HOST_ARGS += \
|
|
$(MESON_COMMON_ARGS) \
|
|
-Dcrypto_backend=openssl
|
|
|
|
MESON_ARGS += \
|
|
$(MESON_COMMON_ARGS) \
|
|
-Dcrypto_backend=$(BUILD_VARIANT)
|
|
|
|
define Package/apk/conffiles
|
|
/etc/apk/repositories.d/customfeeds.list
|
|
endef
|
|
|
|
Package/apk-mbedtls/conffiles = $(Package/apk/conffiles)
|
|
Package/apk-openssl/conffiles = $(Package/apk/conffiles)
|
|
|
|
define Package/apk/default/install
|
|
$(INSTALL_DIR) $(1)/lib/apk/db
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/apk $(1)/usr/bin/apk
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libapk.so.* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/apk/repositories.d
|
|
$(INSTALL_DATA) ./files/customfeeds.list $(1)/etc/apk/repositories.d/customfeeds.list
|
|
endef
|
|
|
|
Package/apk-mbedtls/install = $(Package/apk/default/install)
|
|
Package/apk-openssl/install = $(Package/apk/default/install)
|
|
|
|
$(eval $(call BuildPackage,apk-mbedtls))
|
|
$(eval $(call BuildPackage,apk-openssl))
|
|
$(eval $(call HostBuild))
|