summaryrefslogtreecommitdiffstats
path: root/redhat/kdeadmin
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/kdeadmin')
-rw-r--r--redhat/kdeadmin/kpackagerc33
-rw-r--r--redhat/kdeadmin/ksysvrc8
-rw-r--r--redhat/kdeadmin/kuser.pam3
-rw-r--r--redhat/kdeadmin/kuser.pamd4
-rw-r--r--redhat/kdeadmin/kuserrc6
-rw-r--r--redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec201
6 files changed, 255 insertions, 0 deletions
diff --git a/redhat/kdeadmin/kpackagerc b/redhat/kdeadmin/kpackagerc
new file mode 100644
index 000000000..72be06d46
--- /dev/null
+++ b/redhat/kdeadmin/kpackagerc
@@ -0,0 +1,33 @@
+[Kpackage]
+BSD=false
+DEBAPT=false
+DEBDPKG=false
+KISS=false
+RPM=true
+SLACK=false
+
+[Rpm]
+Package_L_0_0=/mnt/cdrom/RedHat/RPMS
+Package_L_0_1=/mnt/cdrom/SRPMS
+Package_L_0_2=/usr/src/redhat/RPMS
+Package_L_0_3=/usr/src/redhat/SRPMS
+Package_L_0_4=ftp://ftp.redhat.com/pub/redhat/linux/updates/7.2/en
+Package_L_1_0=ftp://rhcontrib.bero.org/pub/rh-contrib/7.2/i386
+Package_L_1_1=ftp://rhcontrib.bero.org/pub/rh-contrib/7.2/noarch
+Package_L_1_2=ftp://rhcontrib.bero.org/pub/rh-contrib/7.2/SRPMS
+Package_S_0_0=0
+Package_S_0_1=0
+Package_S_0_2=1
+Package_S_0_3=0
+Package_S_0_4=1
+Package_S_1_0=0
+Package_S_1_1=0
+Package_S_1_2=0
+Package_U_0_0=1
+Pacakge_U_0_1=1
+Package_U_0_2=1
+Pacakge_U_0_3=1
+Package_U_0_4=0
+Package_U_1_0=0
+Package_U_1_1=0
+Package_U_1_2=0
diff --git a/redhat/kdeadmin/ksysvrc b/redhat/kdeadmin/ksysvrc
new file mode 100644
index 000000000..48754643d
--- /dev/null
+++ b/redhat/kdeadmin/ksysvrc
@@ -0,0 +1,8 @@
+[Other Settings]
+Configured=true
+[Path Settings]
+RunlevelPath=/etc/rc.d
+ScriptPath=/etc/rc.d/init.d
+[Runlevels]
+Show Runlevels=0,1,2,3,4,5,6
+
diff --git a/redhat/kdeadmin/kuser.pam b/redhat/kdeadmin/kuser.pam
new file mode 100644
index 000000000..30492636a
--- /dev/null
+++ b/redhat/kdeadmin/kuser.pam
@@ -0,0 +1,3 @@
+USER=root
+PROGRAM=/usr/sbin/kuser
+SESSION=true
diff --git a/redhat/kdeadmin/kuser.pamd b/redhat/kdeadmin/kuser.pamd
new file mode 100644
index 000000000..c7d67e332
--- /dev/null
+++ b/redhat/kdeadmin/kuser.pamd
@@ -0,0 +1,4 @@
+#%PAM-1.0
+auth include config-util
+account include config-util
+session include config-util
diff --git a/redhat/kdeadmin/kuserrc b/redhat/kdeadmin/kuserrc
new file mode 100644
index 000000000..baeb5a53b
--- /dev/null
+++ b/redhat/kdeadmin/kuserrc
@@ -0,0 +1,6 @@
+[template]
+copySkel=true
+createHomeDir=true
+homeBase=/home
+shell=/bin/bash
+userPrivateGroup=true
diff --git a/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec b/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec
new file mode 100644
index 000000000..abc5006ca
--- /dev/null
+++ b/redhat/kdeadmin/trinity-kdeadmin-3.5.13.spec
@@ -0,0 +1,201 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.13
+%endif
+%define release 1
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?_prefix}" != "/usr"
+%define _variant .opt
+%define _docdir %{_prefix}/share/doc
+%endif
+
+# TDE 3.5.12 specific building variables
+BuildRequires: autoconf automake libtool m4
+%define tde_docdir %{_docdir}/kde
+%define tde_includedir %{_includedir}/kde
+%define tde_libdir %{_libdir}/trinity
+
+
+%define console_helper 1
+
+Name: trinity-kdeadmin
+Summary: Administrative tools for TDE
+Version: %{?version}
+Release: %{?release}%{?dist}%{?_variant}
+
+License: GPLv2
+Group: User Interface/Desktops
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: kdeadmin-%{version}.tar.gz
+Source1: kuser.pam
+Source2: kuser.pamd
+Source5: kpackagerc
+Source6: ksysvrc
+Source7: kuserrc
+
+Requires: trinity-kdelibs
+Requires: pkgconfig
+%if 0%{?console_helper}
+Requires: usermode-gtk
+%endif
+
+BuildRequires: trinity-kdelibs-devel
+BuildRequires: rpm-devel
+
+%description
+The kdeadmin package includes administrative tools for the K Desktop
+Environment (KDE) including:
+kcron, kdat, knetworkconf, kpackage, ksysv, kuser.
+
+
+%prep
+%setup -q -n kdeadmin
+
+%if 0%{?rhel} > 1
+ echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE kpackage"' >kpackage/configure.in.in
+ echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE ksysv"' >ksysv/configure.in.in
+ echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE kuser"' >kuser/configure.in.in
+ echo 'DO_NOT_COMPILE="$DO_NOT_COMPILE lilo-config"' >lilo-config/configure.in.in
+%endif
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+sed -i admin/acinclude.m4.in \
+ -e "s,/usr/include/tqt,%{_includedir}/tqt,g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt.sh
+export PATH="%{_bindir}:${PATH}"
+export LDFLAGS="-L%{_libdir} -I%{_includedir}"
+
+%if 0%{?fedora} > 0
+export CXXFLAGS="${CXXFLAGS} -fpermissive"
+%endif
+
+%configure \
+ --enable-new-ldflags \
+ --disable-dependency-tracking \
+ --disable-rpath \
+ --with-rpm \
+ --enable-final \
+ --enable-closure \
+ --with-private-groups \
+ --with-extra-includes=%{_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%if 0%{?rhel} > 1
+comps="kcron kdat knetworkconf"
+rm -rf %{buildroot}%{_docdir}/HTML/en/kuser \
+ %{buildroot}%{_docdir}/HTML/en/kpackage \
+ %{buildroot}%{_docdir}/HTML/en/ksysv \
+ %{buildroot}%{_docdir}/HTML/en/lilo-config
+%else
+comps="kcron kdat knetworkconf kpackage ksysv kuser"
+mkdir -p %{buildroot}%{_datadir}/config \
+ %{buildroot}/etc/security/console.apps \
+ %{buildroot}/etc/pam.d \
+ %{buildroot}%{_sbindir}
+
+install -p -m644 %{SOURCE5} %{SOURCE6} %{SOURCE7} %{buildroot}%{_datadir}/config/
+
+# Run kuser through consolehelper
+install -p -m644 %{SOURCE1} %{buildroot}/etc/security/console.apps/kuser
+install -p -m644 %{SOURCE2} %{buildroot}/etc/pam.d/kuser
+mv %{buildroot}%{_bindir}/kuser %{buildroot}%{_sbindir}
+ln -s consolehelper %{buildroot}%{_bindir}/kuser
+%endif
+
+# locale's
+%find_lang %{name} || touch %{name}.lang
+HTML_DIR=$(kde-config --expandvars --install html)
+if [ -d %{buildroot}/$HTML_DIR ]; then
+for lang_dir in %{buildroot}/$HTML_DIR/* ; do
+ if [ -d $lang_dir ]; then
+ lang=$(basename $lang_dir)
+ echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
+ # replace absolute symlinks with relative ones
+ pushd $lang_dir
+ for i in *; do
+ [ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
+ done
+ popd
+ fi
+done
+fi
+
+# rpmdocs
+for dir in $comps ; do
+ for file in AUTHORS ChangeLog README TODO ; do
+ test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
+ done
+done
+
+%post
+for icon_theme in crystalsvg hicolor locolor ; do
+ touch --no-create %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%postun
+for icon_theme in crystalsvg hicolor locolor ; do
+ touch --no-create %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${icon_theme} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README
+%doc rpmdocs/*
+%{_bindir}/*
+%if 0%{?rhel} < 1
+%{_sbindir}/*
+%config(noreplace) /etc/pam.d/*
+%config(noreplace) /etc/security/console.apps/*
+%{_datadir}/config*/*
+%{_datadir}/mimelnk/*/*.desktop
+%{_datadir}/icons/crystalsvg/*/*/*
+%endif
+%{_datadir}/apps/*
+%{_datadir}/applications/kde/*.desktop
+%{_datadir}/icons/hicolor/*/*/*
+%{_datadir}/icons/locolor/*/*/*
+%{_datadir}/service*/*.desktop
+%{tde_libdir}/*
+%{_libdir}/pkgconfig/*.pc
+%doc %lang(en) %{_docdir}/HTML/en/*
+
+
+%changelog
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-1
+- Initial release for RHEL 6, RHEL 5 and Fedora 15
+
+* Fri Oct 28 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
+- Import to GIT
+