From 48def1123f3704157e13a389a97f0acc32539ae15db5523df3a384e815754955 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 15 Jan 2011 09:26:18 +0000 Subject: [PATCH] osc copypac from project:home:msmeissn package:tomoyo-tools revision:15 OBS-URL: https://build.opensuse.org/package/show/security/tomoyo-tools?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + tomoyo-tools-2.3.0-20100820.tar.gz | 3 ++ tomoyo-tools-makefile.patch | 59 +++++++++++++++++++++++++ tomoyo-tools.changes | 5 +++ tomoyo-tools.spec | 71 ++++++++++++++++++++++++++++++ 6 files changed, 162 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 tomoyo-tools-2.3.0-20100820.tar.gz create mode 100644 tomoyo-tools-makefile.patch create mode 100644 tomoyo-tools.changes create mode 100644 tomoyo-tools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/tomoyo-tools-2.3.0-20100820.tar.gz b/tomoyo-tools-2.3.0-20100820.tar.gz new file mode 100644 index 0000000..a6e467e --- /dev/null +++ b/tomoyo-tools-2.3.0-20100820.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:085bade115b46d75f990efba9ca3305341a2ed0813ef79ddaa908bfb558e3cb3 +size 97339 diff --git a/tomoyo-tools-makefile.patch b/tomoyo-tools-makefile.patch new file mode 100644 index 0000000..0f3226a --- /dev/null +++ b/tomoyo-tools-makefile.patch @@ -0,0 +1,59 @@ +Index: tomoyo-tools/usr_sbin/Makefile +=================================================================== +--- tomoyo-tools.orig/usr_sbin/Makefile ++++ tomoyo-tools/usr_sbin/Makefile +@@ -18,7 +18,7 @@ libtomoyotools.so: tomoyotools.c tomoyot + ln -sf libtomoyotools.so.1.0.0 libtomoyotools.so + + .c: +- $(CC) $(CFLAGS) -o $@ -ltomoyotools -L. $< ++ $(CC) $(CFLAGS) -o $@ $< -ltomoyotools -L. + + install: all + mkdir -p $(INSTALLDIR)/usr/sbin $(INSTALLDIR)/usr/lib +Index: tomoyo-tools/sbin/Makefile +=================================================================== +--- tomoyo-tools.orig/sbin/Makefile ++++ tomoyo-tools/sbin/Makefile +@@ -5,7 +5,6 @@ all: $(BUILD_FILES) + install: all + mkdir -p $(INSTALLDIR)/sbin + chmod 700 $(BUILD_FILES) +- chown -R root:root . + cp -af --remove-destination $(BUILD_FILES) $(INSTALLDIR)/sbin/ + + .c: +Index: tomoyo-tools/usr_lib_tomoyo/Makefile +=================================================================== +--- tomoyo-tools.orig/usr_lib_tomoyo/Makefile ++++ tomoyo-tools/usr_lib_tomoyo/Makefile +@@ -2,11 +2,12 @@ BUILD_FILES = tomoyo-notifyd tomoyo-edit + + all: $(BUILD_FILES) + ++LIB=lib ++ + install: all +- mkdir -p $(INSTALLDIR)/usr/lib/tomoyo +- chmod 755 $(INSTALLDIR)/usr/lib/tomoyo +- chown -R root:root . +- cp -af --remove-destination $(BUILD_FILES) tomoyotools.conf ../README.tomoyo ../COPYING.tomoyo $(INSTALLDIR)/usr/lib/tomoyo/ ++ mkdir -p $(INSTALLDIR)/usr/$(LIB)/tomoyo ++ chmod 755 $(INSTALLDIR)/usr/$(LIB)/tomoyo ++ cp -af --remove-destination $(BUILD_FILES) tomoyotools.conf ../README.tomoyo ../COPYING.tomoyo $(INSTALLDIR)/usr/$(LIB)/tomoyo/ + + .c: + $(CC) $(CFLAGS) -o $@ $< +Index: tomoyo-tools/usr_sbin/editpolicy.h +=================================================================== +--- tomoyo-tools.orig/usr_sbin/editpolicy.h ++++ tomoyo-tools/usr_sbin/editpolicy.h +@@ -151,7 +151,7 @@ enum tomoyo_color_pair { + + #define CCS_HEADER_LINES 3 + +-#define CCS_CONFIG_FILE "/usr/lib/tomoyo/tomoyotools.conf" ++#define CCS_CONFIG_FILE "/etc/tomoyotools.conf" + + int tomoyo_add_address_group_policy(char *data, const _Bool is_delete); + int tomoyo_add_number_group_policy(char *data, const _Bool is_delete); diff --git a/tomoyo-tools.changes b/tomoyo-tools.changes new file mode 100644 index 0000000..b3f3b3d --- /dev/null +++ b/tomoyo-tools.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Jan 15 09:40:25 CET 2011 - meissner@suse.de + +- initial packaging of the tomoyo userland utilities. + diff --git a/tomoyo-tools.spec b/tomoyo-tools.spec new file mode 100644 index 0000000..f3572a6 --- /dev/null +++ b/tomoyo-tools.spec @@ -0,0 +1,71 @@ +# +# spec file for package hello (Version 2.3) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define downloadver 2.3.0-20100820 +BuildRequires: ncurses-devel help2man +Name: tomoyo-tools +License: GPL v3 or later +Group: Development/Tools/Other +AutoReqProv: on +Summary: A Friendly Greeting Program +Url: http://sourceforge.jp/projects/tomoyo/ +Version: 2.3.0.20100820 +Release: 79 +Source0: http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/tomoyo-tools-%{downloadver}.tar.gz +Patch0: %{name}-makefile.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +TOMOYO userland utilities. + +%prep +%setup -q -n %{name} +%patch0 -p1 + +%build +make CC="gcc $RPM_OPT_FLAGS" + +%install +make install INSTALLDIR=$RPM_BUILD_ROOT +if [ "%_lib" = "lib64" ]; then + mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/lib64 +fi +mkdir $RPM_BUILD_ROOT/etc +mkdir $RPM_BUILD_ROOT/etc/tomoyo +mv $RPM_BUILD_ROOT/usr/%_lib/tomoyo/tomoyotools.conf $RPM_BUILD_ROOT/etc + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%doc COPYING.tomoyo README.tomoyo +%dir /etc/tomoyo +%attr(700,root,root) /sbin/tomoyo-init +%_libdir/lib*.so* +%dir %_libdir/tomoyo +%_libdir/tomoyo/* +/usr/sbin/* +/usr/share/man/man8/* +%config(noreplace) /etc/tomoyotools.conf + + +%changelog