summaryrefslogtreecommitdiffstats
path: root/redhat/extras
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/extras')
-rw-r--r--redhat/extras/fileshareset/fileshareset.spec115
-rw-r--r--redhat/extras/trinity-filesystem/trinity-filesystem.spec183
2 files changed, 298 insertions, 0 deletions
diff --git a/redhat/extras/fileshareset/fileshareset.spec b/redhat/extras/fileshareset/fileshareset.spec
new file mode 100644
index 000000000..96c69e81d
--- /dev/null
+++ b/redhat/extras/fileshareset/fileshareset.spec
@@ -0,0 +1,115 @@
+#
+# spec file for package fileshareset
+#
+# Copyright (c) 2014 François Andriot <francois.andriot@free.fr>
+#
+# 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:/www.trinitydesktop.org/
+#
+
+# Extract from 'fileshareset.cpp'
+#copyright : (C) 2003 SuSE AG
+#email : Uwe.Gansert@suse.de
+
+Name: fileshareset
+Version: 2.0
+Release: 1%{?dist}
+Summary: Set and list fileshares
+Group: System/Management
+URL: http://www.trinitydesktop.org/
+
+%if 0%{?suse_version}
+License: GPL-2.0+
+%else
+License: GPLv2+
+%endif
+
+#Vendor: Trinity Project
+#Packager: Francois Andriot <francois.andriot@free.fr>
+
+Prefix: /usr
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{name}-%{version}.tar.gz
+
+# for set_permissions macro
+%if 0%{?suse_version}
+PreReq: permissions
+%endif
+
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gcc-c++
+
+#Requires:
+
+%description
+This package contains the the fileshareset utility to allow users to
+add or remove file shares. It's also possible to list currently shared
+locations. /etc/security/fileshare.conf is the main configuration file
+This utility was originally written for openSUSE KDE3.
+
+
+%prep
+%setup -q -n fileshareset2
+aclocal
+autoconf
+automake -a -c
+
+
+%build
+export CXXFLAGS="$CXXFLAGS -fPIE"
+export CFLAGS="$CFLAGS -fPIE"
+export LDFLAGS="$LDFLAGS -pie"
+%configure
+%__make %{?_smp_mflags}
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT
+
+# Install the man page
+%__install -D -m 644 man/fileshareset.8 %{?buildroot}%{_mandir}/man8/fileshareset.8
+
+# Install the default configuration file
+mkdir -p "${RPM_BUILD_ROOT}%{_sysconfdir}/security/"
+echo "RESTRICT=yes" > "${RPM_BUILD_ROOT}%{_sysconfdir}/security/fileshare.conf"
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/filesharelist
+%{_mandir}/man8/fileshareset.8*
+%config(noreplace) %{_sysconfdir}/security/fileshare.conf
+
+# Setuid program
+%if 0%{?suse_version}
+%verify(not mode) %{_bindir}/fileshareset
+%else
+%attr(4755,root,root) %{_bindir}/fileshareset
+%endif
+
+
+%if 0%{?suse_version}
+# Check permissions on setuid files (openSUSE specific)
+%verifyscript
+%verify_permissions -e /usr/bin/fileshareset
+%endif
+
+
+%changelog
+* Sun Oct 5 2014 François Andriot <francois.andriot@free.fr> - 2.0-1
+- Initial build for TDE R14
diff --git a/redhat/extras/trinity-filesystem/trinity-filesystem.spec b/redhat/extras/trinity-filesystem/trinity-filesystem.spec
new file mode 100644
index 000000000..282561b98
--- /dev/null
+++ b/redhat/extras/trinity-filesystem/trinity-filesystem.spec
@@ -0,0 +1,183 @@
+#
+# spec file for package trinity-filesystem
+#
+# Copyright (c) 2014 François Andriot <francois.andriot@free.fr>
+#
+# 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:/www.trinitydesktop.org/
+#
+
+# TDE variables
+%define tde_version 14.0.0
+%define tde_prefix /opt/trinity
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define _docdir %{tde_docdir}
+%define tde_docdir %{tde_datadir}/doc
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_includedir %{tde_prefix}/include
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+
+
+Name: trinity-filesystem
+Version: %{tde_version}
+Release: 1%{?dist}
+Summary: Trinity Directory Layout
+Group: System/Fhs
+URL: http://www.trinitydesktop.org/
+
+%if 0%{?suse_version}
+License: GPL-2.0+
+%else
+License: GPLv2+
+%endif
+
+#Vendor: Trinity Desktop
+#Packager: Francois Andriot <francois.andriot@free.fr>
+
+Prefix: /usr
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+
+%description
+This package installs the Trinity directory structure.
+
+
+%files
+%dir %{tde_prefix}
+
+%dir %{tde_bindir}
+
+%dir %{tde_datadir}
+%dir %{tde_datadir}/config
+
+%dir %{tde_docdir}
+%dir %{tde_tdedocdir}
+%dir %{tde_tdedocdir}/HTML
+%dir %{tde_tdedocdir}/HTML/en
+%dir %{tde_tdedocdir}/HTML/en/common
+
+%dir %{tde_includedir}
+%dir %{tde_tdeincludedir}
+
+%dir %{tde_libdir}
+%dir %{tde_libdir}/pkgconfig
+%dir %{tde_tdelibdir}
+
+%dir %{tde_datadir}/applications
+%dir %{tde_datadir}/applications/tde
+%dir %{tde_datadir}/applnk
+%dir %{tde_datadir}/apps
+%dir %{tde_datadir}/cmake
+%dir %{tde_datadir}/config.kcfg
+%dir %{tde_datadir}/autostart
+%dir %{tde_datadir}/emoticons
+%dir %{tde_datadir}/icons
+%dir %{tde_datadir}/icons/crystalsvg
+%dir %{tde_datadir}/icons/hicolor
+%dir %{tde_datadir}/locale
+%dir %{tde_datadir}/mimelnk
+%dir %{tde_datadir}/mimelnk/all
+%dir %{tde_datadir}/mimelnk/application
+%dir %{tde_datadir}/mimelnk/audio
+%dir %{tde_datadir}/mimelnk/image
+%dir %{tde_datadir}/mimelnk/inode
+%dir %{tde_datadir}/mimelnk/message
+%dir %{tde_datadir}/mimelnk/model
+%dir %{tde_datadir}/mimelnk/multipart
+%dir %{tde_datadir}/mimelnk/text
+%dir %{tde_datadir}/mimelnk/uri
+%dir %{tde_datadir}/mimelnk/video
+%dir %{tde_datadir}/services
+%dir %{tde_datadir}/servicetypes
+
+%dir %{_sysconfdir}/trinity
+%dir %{_sysconfdir}/xdg/menus
+
+##########
+
+%prep
+
+%build
+
+%install
+%__install -d -m 755 %{?buildroot}%{tde_prefix}
+
+%__install -d -m 755 %{?buildroot}%{tde_bindir}
+
+%__install -d -m 755 %{?buildroot}%{tde_datadir}
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/applications
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/applications/tde
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/applnk
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/apps
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/autostart
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/cmake
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/config
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/config.kcfg
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/emoticons
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/icons
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/icons/crystalsvg
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/icons/hicolor
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/locale
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/all
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/application
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/audio
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/image
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/inode
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/message
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/model
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/multipart
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/text
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/uri
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/mimelnk/video
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/services
+%__install -d -m 755 %{?buildroot}%{tde_datadir}/servicetypes
+
+%__install -d -m 755 %{?buildroot}%{tde_docdir}
+%__install -d -m 755 %{?buildroot}%{tde_tdedocdir}
+%__install -d -m 755 %{?buildroot}%{tde_tdedocdir}/HTML
+%__install -d -m 755 %{?buildroot}%{tde_tdedocdir}/HTML/en
+%__install -d -m 755 %{?buildroot}%{tde_tdedocdir}/HTML/en/common
+
+%__install -d -m 755 %{?buildroot}%{tde_includedir}
+%__install -d -m 755 %{?buildroot}%{tde_tdeincludedir}
+
+%__install -d -m 755 %{?buildroot}%{tde_libdir}
+%__install -d -m 755 %{?buildroot}%{tde_libdir}/pkgconfig
+%__install -d -m 755 %{?buildroot}%{tde_tdelibdir}
+
+%__install -d -m 755 %{?buildroot}%{_datadir}/icons/hicolor
+%__install -d -m 755 %{?buildroot}%{_datadir}/icons/hicolor/32x32
+%__install -d -m 755 %{?buildroot}%{_datadir}/icons/hicolor/32x32/apps
+
+%__install -d -m 755 %{?buildroot}%{_sysconfdir}/trinity
+%__install -d -m 755 %{?buildroot}%{_sysconfdir}/xdg/menus
+
+
+%post
+%if 0%{?suse_version}
+# Add setuid files in '/etc/permissions.local'
+for b in fileshareset kgrantpty kpac_dhcp_helper start_tdeinit; do
+ if ! grep -q "^%{tde_bindir}/${b}" "/etc/permissions.local"; then
+ echo "%{tde_bindir}/${b} root:root 4711" >>/etc/permissions.local
+ fi
+done
+%endif
+
+
+%changelog
+* Mon Jun 03 2013 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1
+- Initial build for TDE R14