summaryrefslogtreecommitdiffstats
path: root/redhat/extras
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-10-05 11:54:00 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-10-05 11:54:00 +0200
commit498055e3b446b47f81959dac4cf7525ea5bd9679 (patch)
tree65098eb5f26151e37c6d4622af6049175f8ae3ea /redhat/extras
parent99f751deec4bf669802b3a72e204aa29cdf243d7 (diff)
downloadtde-packaging-498055e3b446b47f81959dac4cf7525ea5bd9679.tar.gz
tde-packaging-498055e3b446b47f81959dac4cf7525ea5bd9679.zip
RPM Packaging: add fileshareset
Diffstat (limited to 'redhat/extras')
-rw-r--r--redhat/extras/fileshareset/fileshareset.spec90
1 files changed, 90 insertions, 0 deletions
diff --git a/redhat/extras/fileshareset/fileshareset.spec b/redhat/extras/fileshareset/fileshareset.spec
new file mode 100644
index 000000000..6848123bd
--- /dev/null
+++ b/redhat/extras/fileshareset/fileshareset.spec
@@ -0,0 +1,90 @@
+#
+# 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
+
+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="$CXXFLAGS -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}/etc/security/"
+echo "RESTRICT=yes" > "${RPM_BUILD_ROOT}%{_sysconfdir}/security/fileshare.conf"
+
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/filesharelist
+%{_bindir}/fileshareset
+%{_mandir}/man8/fileshareset.8*
+%{_sysconfdir}/security/fileshare.conf
+
+
+%changelog
+* Sun Oct 5 2014 François Andriot <francois.andriot@free.fr> - 1.0-1
+- Initial build for TDE R14