[packages/aufs-util] new

glen glen at pld-linux.org
Sat Jun 18 01:16:41 CEST 2016


commit 1156728ec2fa0ef8a07b572dc840c42b6cdf5710
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Jun 18 02:15:50 2016 +0300

    new
    
    based on aufs.spec
    
    unable to build as linux/aufs_type.h is unavailable

 aufs-util.spec   | 42 ++++++++++++++++++++++++++++++++++++++++++
 buildflags.patch | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
---
diff --git a/aufs-util.spec b/aufs-util.spec
new file mode 100644
index 0000000..0a9b230
--- /dev/null
+++ b/aufs-util.spec
@@ -0,0 +1,42 @@
+%define		rel	0.1
+%define		snap	20151116
+Summary:	Utilities for aufs
+Name:		aufs-util
+Version:	4.0
+Release:	0.%{snap}.%{rel}
+License:	GPL v2
+Group:		Base/Kernel
+# git archive -v --prefix=${P}/ --remote=git://git.code.sf.net/p/aufs/aufs-util aufs4.0 -o ${P}.tar
+# xz -ve9 *.tar
+Source0:	https://dev.gentoo.org/~jlec/distfiles/%{name}-%{version}_p%{snap}.tar.xz
+# Source0-md5:	a1e9a7e370f7fefd08abe70e1900c812
+Patch0:		buildflags.patch
+URL:		http://aufs.sourceforge.net/
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Utilities are always necessary for aufs
+
+%prep
+%setup -q -n %{name}-%{version}_p%{snap}
+%patch0 -p1
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	LIBDIR=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_mandir}/man5,%{_sbindir}}
+cp -p util/{mount.aufs,umount.aufs,auplink,aulchown} $RPM_BUILD_ROOT%{_sbindir}
+cp -p util/aufs.5 $RPM_BUILD_ROOT%{_mandir}/man5/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.aufs1 README.aufs2 History
+%attr(755,root,root) %{_sbindir}/*
+%{_mandir}/man5/*
diff --git a/buildflags.patch b/buildflags.patch
new file mode 100644
index 0000000..e893f44
--- /dev/null
+++ b/buildflags.patch
@@ -0,0 +1,53 @@
+--- aufs-util-4.0_p20151116.orig/Makefile	2015-11-12 05:29:36.000000000 +0200
++++ aufs-util-4.0_p20151116/Makefile	2016-06-18 02:13:42.598522963 +0300
+@@ -19,7 +19,7 @@
+ override CPPFLAGS += -D_GNU_SOURCE
+ override CPPFLAGS += -I./libau
+ override CPPFLAGS += -DAUFHSM_CMD=\"/usr/bin/aufhsm\"
+-override CFLAGS += -O -Wall
++override CFLAGS += -Wall
+ INSTALL ?= install
+ Install = ${INSTALL} -o root -g root -p
+ ManDir = /usr/share/man
+@@ -76,7 +76,6 @@
+ ver_test: ver
+ 	./ver
+ 
+-${Bin}: override LDFLAGS += -static -s
+ ${Bin}: LDLIBS = -L. -lautil
+ ${BinObj}: %.o: %.c ${LibUtilHdr} ${LibUtil}
+ 
+--- aufs-util-4.0_p20151116.orig/fhsm/Makefile	2015-11-12 05:29:36.000000000 +0200
++++ aufs-util-4.0_p20151116/fhsm/Makefile	2016-06-18 02:13:42.601856468 +0300
+@@ -42,9 +42,9 @@
+ .NOTPARALLEL: ${LibFhsm}
+ 
+ ${TgtObj}: %.o: %.c ${LibFhsmHdr} $(addprefix ../, ${LibUtilHdr}) ${LibFhsm}
+-#${Tgt}: override LDFLAGS += -static
+-${Tgt}: override LDFLAGS += -s
+-${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil -lrt
++#${Tgt}: override LDFLAGS +=
++${Tgt}: override LDFLAGS +=
++${Tgt}: override LDLIBS += -L. -lfhsm -L.. -lautil  -lrt
+ 
+ ########################################
+ 
+--- aufs-util-4.0_p20151116.orig/libau/Makefile	2015-11-12 05:29:36.000000000 +0200
++++ aufs-util-4.0_p20151116/libau/Makefile	2016-06-18 02:13:42.601856468 +0300
+@@ -37,14 +37,14 @@
+ 	ln -sf $< $@
+ ${LibSo}.${LibSoMajor}: ${LibSo}.${LibSoMajor}.${LibSoMinor}
+ 	ln -sf $< $@
+-${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS += -s
++${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDFLAGS +=
+ ${LibSo}.${LibSoMajor}.${LibSoMinor}: override LDLIBS += -ldl -lpthread
+ ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
+ 	${CC} --shared -Wl,-soname,${LibSo}.${LibSoMajor} ${LDFLAGS} \
+ 		-o $@ $^ ${LDLIBS}
+ 
+ install_ulib: File = ${LibSo}.${LibSoMajor}.${LibSoMinor}
+-install_ulib: Tgt = ${DESTDIR}/usr/lib
++install_ulib: Tgt = ${DESTDIR}$(LIBDIR)
+ install_ulib: ${File}
+ 	${INSTALL} -d ${Tgt}
+ 	${Install} -m 644 ${File} ${Tgt}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aufs-util.git/commitdiff/1156728ec2fa0ef8a07b572dc840c42b6cdf5710



More information about the pld-cvs-commit mailing list