]> git.ipfire.org Git - people/stevee/pakfire.git/blobdiff - macros/constants.macro
Hardening: Declare content of /usr/lib/grub as firmware files
[people/stevee/pakfire.git] / macros / constants.macro
index 07459a39e3d104ec889a65f14b80baa29cfef91a..e56d5865f56f383b171270b14b2679d1830f8251 100644 (file)
@@ -1,24 +1,21 @@
 
-BUILDROOT   = %{DIR_BUILD}/%{name}-%{thisver}
-
-DIR_BUILD   = /builddir
 DIR_APP     = %{DIR_SRC}/%{thisapp}
 DIR_DL      = %{BASEDIR}/files
 DIR_PATCHES = %{BASEDIR}/patches
-DIR_SRC     = %{DIR_BUILD}/source
+DIR_SRC     = /build/source
 DIR_TMP     = /tmp
 DIR_SOURCE  = %{BASEDIR}
 
 # By default, take all patches from the patches directory
 # in alphabetical order.
-patches = $(find %{DIR_PATCHES} -not -type d 2>/dev/null | sort)
+patches = %(find %{DIR_PATCHES} %{DIR_PATCHES}/%{DISTRO_ARCH} -not -type d -maxdepth 1 2>/dev/null | sort --version-sort)
 sources = %{thisapp}.tar.gz
 
 # Macro definitions
 
 # Macro to extract tarballs.
 # Guesses the compression type automatically.
-MACRO_EXTRACT = tar xaf
+MACRO_EXTRACT = tar --no-same-owner --no-acls --no-xattrs -xaf
 
 # Remove rpath from libtool.
 MACRO_FIX_LIBTOOL