]> git.pld-linux.org Git - packages/pinetd.git/commitdiff
- what now?
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Mar 2009 13:03:18 +0000 (13:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pinetd.spec -> 1.1

pinetd.spec [new file with mode: 0644]

diff --git a/pinetd.spec b/pinetd.spec
new file mode 100644 (file)
index 0000000..f88856b
--- /dev/null
@@ -0,0 +1,66 @@
+# TODO
+# - package it, initscript
+Summary:       Portable INET Daemon Framework
+Name:          pinetd
+Version:       0.0.328
+Release:       0.3
+License:       GPL v2
+Group:         Applications
+Source0:       %{name}.tar.bz2
+# Source0-md5: 94e4cdfdaefeceb4b89e0654daf443c8
+URL:           http://www.pinetd.net/
+Requires:      /usr/bin/php
+#Requires:     php-common >= 4:5.3
+Requires:      php-dom
+Requires:      php-filter
+Requires:      php-ftp
+Requires:      php-gd
+Requires:      php-hash
+Requires:      php-iconv
+Requires:      php-mbstring
+Requires:      php-mhash
+Requires:      php-mysqli
+Requires:      php-pcre
+Requires:      php-pecl-proctitle
+Requires:      php-sockets
+Requires:      php-sqlite
+Requires:      php-tokenizer
+Requires:      php-xml
+Requires:      php-zlib
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _appdir %{_datadir}/%{name}
+
+%description
+PInetd (Portable INET Daemon) is an Open Source server framework &
+daemon written in PHP, allowing anyone to easily create a TCP server,
+daemon, etc. You can either use it as a developper, and build your own
+application.
+
+%prep
+%setup -q -n %{name}
+cat > %{name}.sh <<'EOF'
+#!/bin/sh
+exec /usr/bin/php -d date.timezone=$(date +%Z) %{_appdir}/code/root.php ${1:+"$@"}
+EOF
+
+find -name .svn | xargs rm -rf
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_appdir},%{_sysconfdir}/%{name}}
+install %{name}.sh $RPM_BUILD_ROOT%{_sbindir}/%{name}
+cp -a code $RPM_BUILD_ROOT%{_appdir}
+cp -a etc/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/*
+%dir %{_sysconfdir}/pinetd
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pinetd/default_config.xml
+%attr(755,root,root) %{_sbindir}/pinetd
+%{_appdir}
This page took 0.069979 seconds and 4 git commands to generate.