pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
apk-tools: renamed from apk, miscommit
Module Name: pkgsrc-wip
Committed By: NishiOwO <nishi%e3t.cc@localhost>
Pushed By: nishi
Date: Sun Aug 20 08:07:44 2023 +0900
Changeset: 6a07b6bf0c8dce9fd0087e50baf89856d99593b6
Added Files:
apk-tools/DESCR
apk-tools/MESSAGE
apk-tools/Makefile
apk-tools/PLIST
apk-tools/distinfo
apk-tools/patches/patch-src_apk__defines.h
apk-tools/patches/patch-src_io.c
Log Message:
apk-tools: renamed from apk, miscommit
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6a07b6bf0c8dce9fd0087e50baf89856d99593b6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
apk-tools/DESCR | 2 ++
apk-tools/MESSAGE | 9 +++++++++
apk-tools/Makefile | 24 ++++++++++++++++++++++++
apk-tools/PLIST | 26 ++++++++++++++++++++++++++
apk-tools/distinfo | 7 +++++++
apk-tools/patches/patch-src_apk__defines.h | 15 +++++++++++++++
apk-tools/patches/patch-src_io.c | 24 ++++++++++++++++++++++++
7 files changed, 107 insertions(+)
diffs:
diff --git a/apk-tools/DESCR b/apk-tools/DESCR
new file mode 100644
index 0000000000..3f971aa337
--- /dev/null
+++ b/apk-tools/DESCR
@@ -0,0 +1,2 @@
+Alpine Package Keeper (apk) is a package manager originally built for Alpine Linux,
+but now used by several other distributions as well.
diff --git a/apk-tools/MESSAGE b/apk-tools/MESSAGE
new file mode 100644
index 0000000000..f7f8df2596
--- /dev/null
+++ b/apk-tools/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD$
+
+Using apk-tools will create and use the following directory:
+ /etc/apk
+
+which means you need to create/use /etc/apk/repositories to add new
+repository(s).
+===========================================================================
diff --git a/apk-tools/Makefile b/apk-tools/Makefile
new file mode 100644
index 0000000000..3b75521c4f
--- /dev/null
+++ b/apk-tools/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME= apk-tools-v3.0.0_pre0
+PKGNAME= ${DISTNAME:S,-v,-,}
+CATEGORIES= misc
+MASTER_SITES= https://nishi.e3t.cc/
+
+MAINTAINER= nishi@nishi.boats
+HOMEPAGE= https://git.alpinelinux.org/apk-tools/
+COMMENT= Alpine Package Manager Tools
+LICENSE= gnu-gpl-v2
+
+WRKSRC= ${WRKDIR}/apk-tools
+
+PATCHDIR= ../../misc/apk-tools/patches
+
+DEPENDS+= pkgconf>=0:../../devel/pkgconf
+DEPENDS+= meson>=0:../../devel/meson
+DEPENDS+= lua53>=0:../../lang/lua53
+
+PKGCONFIG_OVERRIDE+= src/apk.pc.in
+
+.include "../../devel/meson/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/apk-tools/PLIST b/apk-tools/PLIST
new file mode 100644
index 0000000000..d6f814ea71
--- /dev/null
+++ b/apk-tools/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD$
+bin/apk
+include/apk/apk_applet.h
+include/apk/apk_atom.h
+include/apk/apk_blob.h
+include/apk/apk_crypto.h
+include/apk/apk_database.h
+include/apk/apk_defines.h
+include/apk/apk_extract.h
+include/apk/apk_fs.h
+include/apk/apk_hash.h
+include/apk/apk_io.h
+include/apk/apk_openssl.h
+include/apk/apk_package.h
+include/apk/apk_pathbuilder.h
+include/apk/apk_print.h
+include/apk/apk_provider_data.h
+include/apk/apk_solver.h
+include/apk/apk_solver_data.h
+include/apk/apk_tar.h
+include/apk/apk_version.h
+lib/libapk.a
+lib/libapk.so
+lib/libapk.so.2
+lib/libapk.so.2.99.0
+lib/pkgconfig/apk.pc
diff --git a/apk-tools/distinfo b/apk-tools/distinfo
new file mode 100644
index 0000000000..4a71d86eb6
--- /dev/null
+++ b/apk-tools/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (apk-tools-v3.0.0_pre0.tar.gz) = 5c478a2faf7cd4ba3955d33a4d6455e01cae7589c46bf24588a8ec8072e94d5b
+SHA512 (apk-tools-v3.0.0_pre0.tar.gz) = c31fcdc0b39b6e954a8e8e66398c9356d68a220def2c4370b57cdc1ad9df161fa637f896be0f7ebbc0dcd0b0e6043113d95641a331a4be2654f578529b0f3220
+Size (apk-tools-v3.0.0_pre0.tar.gz) = 2784013 bytes
+SHA1 (patch-src_apk__defines.h) = 02f08a2fbef8b426d8d81282b5c64712ce0811af
+SHA1 (patch-src_io.c) = 1d6870162ef79c663f84f05dff4e185ba8b41192
diff --git a/apk-tools/patches/patch-src_apk__defines.h b/apk-tools/patches/patch-src_apk__defines.h
new file mode 100644
index 0000000000..7854150eb1
--- /dev/null
+++ b/apk-tools/patches/patch-src_apk__defines.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+APK does not have extern in their files.
+
+--- src/apk_defines.h.orig 2023-08-18 20:32:45.674938175 +0000
++++ src/apk_defines.h
+@@ -16,6 +16,8 @@
+ #include <errno.h>
+ #include <time.h>
+
++extern char** environ;
++
+ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+ #define BIT(x) (1U << (x))
+ #define min(a, b) ((a) < (b) ? (a) : (b))
diff --git a/apk-tools/patches/patch-src_io.c b/apk-tools/patches/patch-src_io.c
new file mode 100644
index 0000000000..afafa5bd10
--- /dev/null
+++ b/apk-tools/patches/patch-src_io.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+NetBSD does not have fgetpwent_r.
+
+--- src/io.c.orig 2023-08-18 20:31:44.042534550 +0000
++++ src/io.c
+@@ -1208,7 +1208,7 @@ static void idcache_load_users(int root_
+ do {
+ #ifdef HAVE_FGETPWENT_R
+ fgetpwent_r(in, &pwent, buf, sizeof(buf), &pwd);
+-#elif !defined(__APPLE__)
++#elif !defined(__NetBSD__)
+ pwd = fgetpwent(in);
+ #else
+ # warning macOS does not support nested /etc/passwd databases, using system one.
+@@ -1241,7 +1241,7 @@ static void idcache_load_groups(int root
+ do {
+ #ifdef HAVE_FGETGRENT_R
+ fgetgrent_r(in, &grent, buf, sizeof(buf), &grp);
+-#elif !defined(__APPLE__)
++#elif !defined(__NetBSD__)
+ grp = fgetgrent(in);
+ #else
+ # warning macOS does not support nested /etc/group databases, using system one.
Home |
Main Index |
Thread Index |
Old Index