ajout de la recette pacman pour compiler wazuh-agent
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index c661f447..3d6e9b45 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -72,14 +72,9 @@ install-data-local:
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
|
||||
-update-po:
|
||||
- $(MAKE) -C lib/libalpm/po update-po
|
||||
- $(MAKE) -C scripts/po update-po
|
||||
- $(MAKE) -C src/pacman/po update-po
|
||||
-
|
||||
update-copyright:
|
||||
for file in $(shell sh -c 'git grep -l "Copyright .* Pacman Development" | grep -v "\.po"'); do \
|
||||
sed -i -e "/Copyright (/s/-$(OLD)/-$(NEW)/" -e "/Copyright (/s/ $(OLD)/ $(OLD)-$(NEW)/" "$$file"; \
|
||||
done
|
||||
|
||||
-.PHONY: update-po update-copyright
|
||||
+.PHONY: update-copyright
|
||||
diff --git a/lib/libalpm/Makefile.am b/lib/libalpm/Makefile.am
|
||||
index e4f83223..f428aa3b 100644
|
||||
--- a/lib/libalpm/Makefile.am
|
||||
+++ b/lib/libalpm/Makefile.am
|
||||
@@ -1,8 +1,6 @@
|
||||
AUTOMAKE_OPTIONS = gnu
|
||||
|
||||
-SUBDIRS = po
|
||||
-
|
||||
-EXTRA_DIST = meson.build po/meson.build
|
||||
+EXTRA_DIST = meson.build
|
||||
|
||||
lib_LTLIBRARIES = libalpm.la
|
||||
include_HEADERS = alpm_list.h alpm.h
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index a116bc3e..4c53429d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -538,14 +538,11 @@ AC_DEFINE_UNQUOTED([LDCONFIG], "$LDCONFIG", [The full path to ldconfig])
|
||||
# Configuration files
|
||||
AC_CONFIG_FILES([
|
||||
lib/libalpm/Makefile
|
||||
-lib/libalpm/po/Makefile.in
|
||||
lib/libalpm/libalpm.pc
|
||||
src/common/Makefile
|
||||
src/pacman/Makefile
|
||||
-src/pacman/po/Makefile.in
|
||||
src/util/Makefile
|
||||
scripts/Makefile
|
||||
-scripts/po/Makefile.in
|
||||
doc/Makefile
|
||||
etc/Makefile
|
||||
test/pacman/Makefile
|
||||
diff --git a/src/pacman/Makefile.am b/src/pacman/Makefile.am
|
||||
index ac2f8e46..e7b6fa02 100644
|
||||
--- a/src/pacman/Makefile.am
|
||||
+++ b/src/pacman/Makefile.am
|
||||
@@ -1,6 +1,5 @@
|
||||
-SUBDIRS = po
|
||||
|
||||
-EXTRA_DIST = meson.build po/meson.build
|
||||
+EXTRA_DIST = meson.build
|
||||
|
||||
# paths set at make time
|
||||
conffile = ${sysconfdir}/pacman.conf
|
||||
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
|
||||
index 63d09767..ef818576 100644
|
||||
--- a/scripts/Makefile.am
|
||||
+++ b/scripts/Makefile.am
|
||||
@@ -3,8 +3,6 @@ AUTOMAKE_OPTIONS = std-options
|
||||
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = \
|
||||
$(WRAPPER)
|
||||
|
||||
-SUBDIRS = po
|
||||
-
|
||||
pkgconfigdir = $(datarootdir)/pkgconfig
|
||||
pkgconfig_DATA = libmakepkg.pc
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
DESCRIPTION = "ALPM library"
|
||||
HOMEPAGE = "https://gitlab.archlinux.org/pacman/pacman"
|
||||
SECTION = "libs"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI = "git://gitlab.archlinux.org/pacman/pacman.git;protocol=https;nobranch=1"
|
||||
SRCREV = "5537881b2525a4f114fcf10b00413b4575a74968"
|
||||
SRC_URI += " \
|
||||
file://0001-disable-po.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "libtool-native autoconf-archive-native libarchive openssl bash"
|
||||
RDEPENDS:${PN} += "bash perl"
|
||||
|
||||
EXTRA_OECONF = ' \
|
||||
--disable-doc \
|
||||
--disable-nls \
|
||||
--with-crypto=openssl \
|
||||
CC="${CC}" \
|
||||
'
|
||||
|
||||
do_configure:prepend() {
|
||||
install -d ${S}/build-aux
|
||||
touch ${S}/build-aux/config.rpath
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
rm -rf ${D}/usr/share
|
||||
rm -rf ${D}/usr/bin/repo-add
|
||||
rm -rf ${D}/usr/bin/pacman-key
|
||||
rm -rf ${D}/usr/bin/pacman-db-upgrade
|
||||
rm -rf ${D}/usr/bin/makepkg
|
||||
|
||||
install -d ${D}/usr/include
|
||||
install -m 0644 ${S}/lib/libalpm/*.h ${D}/usr/include/
|
||||
}
|
||||
|
||||
inherit autotools pkgconfig gettext
|
||||
|
||||
FILES:${PN}-dev += " \
|
||||
/usr/include/*.h \
|
||||
"
|
||||
Reference in New Issue
Block a user