forked from pool/tomoyo-tools
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
This commit is contained in:
commit
48def1123f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
tomoyo-tools-2.3.0-20100820.tar.gz
Normal file
3
tomoyo-tools-2.3.0-20100820.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:085bade115b46d75f990efba9ca3305341a2ed0813ef79ddaa908bfb558e3cb3
|
||||||
|
size 97339
|
59
tomoyo-tools-makefile.patch
Normal file
59
tomoyo-tools-makefile.patch
Normal file
@ -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);
|
5
tomoyo-tools.changes
Normal file
5
tomoyo-tools.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 15 09:40:25 CET 2011 - meissner@suse.de
|
||||||
|
|
||||||
|
- initial packaging of the tomoyo userland utilities.
|
||||||
|
|
71
tomoyo-tools.spec
Normal file
71
tomoyo-tools.spec
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user