summaryrefslogtreecommitdiff
path: root/package/aufs2-util/patches
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2009-08-23 20:43:48 +0200
committerPhil Sutter <phil@nwl.cc>2009-08-23 21:06:58 +0200
commit5774bab43a1946acd8440ad759eb6cc26335e64c (patch)
tree6af74858064eda20d6f9ce643bf1123a2f33b926 /package/aufs2-util/patches
parente5940baadbdf76d39ea6079972dbbab9c1c623b1 (diff)
new package aufs2-util
Since the aufs2 utilities seem to be available only via git, copy the current state into the src/ directory, with the samples/ directory removed. The files were intentionally left untouched, so custom changes are still kept in patch files for easier upstream sending. Using do-extract to copy the sources to the working directory has the downside of having to define an empty do-configure target (as this is not needed) but allows for using update-patches just like with any other package (which is not the case if the copying is done in a do-configure target).
Diffstat (limited to 'package/aufs2-util/patches')
-rw-r--r--package/aufs2-util/patches/patch-Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/aufs2-util/patches/patch-Makefile b/package/aufs2-util/patches/patch-Makefile
new file mode 100644
index 000000000..5cfb193c3
--- /dev/null
+++ b/package/aufs2-util/patches/patch-Makefile
@@ -0,0 +1,33 @@
+ - explicitly use the host cc to compile c2sh and c2tmac
+ (using per-target local variable assignments is an elegant
+ way for not having to define explicit rules for the targets)
+ - dont try setting owner and group of installed files
+--- aufs2-util-130809.orig/Makefile 2009-08-13 14:59:49.000000000 +0200
++++ aufs2-util-130809/Makefile 2009-08-23 18:05:03.909726416 +0200
+@@ -54,6 +54,11 @@ ${Dummy}: ${LibSoObj}
+ ${LibSo}: ${Dummy}
+ ln -f $< $@
+
++c2sh c2tmac: CC = ${HOSTCC}
++c2sh c2tmac: CFLAGS="-I${KDIR}/include"
++c2sh c2tmac: LDFLAGS=
++c2sh c2tmac: CPPFLAGS=
++
+ etc_default_aufs: c2sh aufs.shlib
+ ${RM} $@
+ echo '# aufs variables for shell scripts' > $@
+@@ -86,12 +91,12 @@ install_ulib: File = ${LibSo}
+ install_ulib: Tgt = ${DESTDIR}/ulib
+ install_sbin install_ubin install_man install_ulib: ${File}
+ install -d ${Tgt}
+- install -m 755 -o root -g root -p ${Opt} ${File} ${Tgt}
++ install -m 755 -p ${Opt} ${File} ${Tgt}
+ install_etc: File = etc_default_aufs
+ install_etc: Tgt = ${DESTDIR}/etc/default/aufs
+ install_etc: ${File}
+ install -d $(dir ${Tgt})
+- install -m 644 -o root -g root -p -T ${File} ${Tgt}
++ install -m 644 -p -T ${File} ${Tgt}
+
+ # do not inlcude install_ulib here
+ install: install_man install_sbin install_ubin install_etc