[packages/yubikey-val] - raw from FC

arekm arekm at pld-linux.org
Mon Jan 30 14:11:30 CET 2017


commit b1ab5853d600c0fc62b2fea7b562ab31b81b27e2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Jan 30 14:11:17 2017 +0100

    - raw from FC

 yubikey-val-Makefile.patch | 14 ++++++++++++++
 yubikey-val.spec           | 47 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
---
diff --git a/yubikey-val.spec b/yubikey-val.spec
new file mode 100644
index 0000000..78b4ab7
--- /dev/null
+++ b/yubikey-val.spec
@@ -0,0 +1,47 @@
+Summary:	The YubiKey Validation Server
+Name:		yubikey-val
+Version:	2.10
+Release:	0.1
+License:	BSD
+Group:		Applications/System
+URL:		http://code.google.com/p/yubikey-val-server-php/
+Source0:	http://yubikey-val-server-php.googlecode.com/files/%{name}-%{version}.tgz
+Patch0:		%{name}-Makefile.patch
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:	php(core) Requires: php-mcrypt Requires: php-curl Requires: php-pear Requires: php-pdo
+
+%description
+This is a server that validates Yubikey OTPs. It is written in PHP,
+for use with web servers such as Apache
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	etcprefix=$RPM_BUILD_ROOT%{_sysconfdir}/ykval \
+	binprefix=$RPM_BUILD_ROOT%{_bindir} \
+	sbinprefix=$RPM_BUILD_ROOT%{_sbindir} \
+	phpprefix=$RPM_BUILD_ROOT%{_datadir}/ykval \
+	docprefix=$RPM_BUILD_ROOT%{_docdir}/ykval \
+	muninprefix=$RPM_BUILD_ROOT%{_datadir}/munin/plugins
+
+rm -rf $RPM_BUILD_ROOT%{_docdir}
+mv $RPM_BUILD_ROOT%{_sysconfdir}/ykval/ykval-config.php-template $RPM_BUILD_ROOT%{_sysconfdir}/ykval/ykval-config.php
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/* ykval-db.sql
+%config(noreplace) %{_sysconfdir}/ykval/ykval-config.php
+%dir %{_sysconfdir}/ykval/
+%{_datadir}/ykval/
+%attr(755,root,root) %{_sbindir}/*
diff --git a/yubikey-val-Makefile.patch b/yubikey-val-Makefile.patch
new file mode 100644
index 0000000..59790a8
--- /dev/null
+++ b/yubikey-val-Makefile.patch
@@ -0,0 +1,14 @@
+--- yubikey-val-2.10-orig/Makefile	2011-08-18 07:48:57.000000000 -0500
++++ yubikey-val-2.10/Makefile	2011-11-08 14:26:34.000000000 -0600
+@@ -34,10 +34,7 @@
+ 	install -D ykval-export.php $(sbinprefix)/ykval-export
+ 	install -D ykval-import.php $(sbinprefix)/ykval-import
+ 	install -D ykval-checksum-clients.php $(sbinprefix)/ykval-checksum-clients
+-	install -D ykval-munin-ksmlatency.php $(muninprefix)/ykval_ksmlatency
+-	install -D ykval-munin-vallatency.php $(muninprefix)/ykval_vallatency
+-	install -D ykval-munin-queuelength.php $(muninprefix)/ykval_queuelength
+-	install -D --backup --mode 640 --group $(wwwgroup) ykval-config.php $(etcprefix)/ykval-config.php-template
++	install -D ykval-config.php $(etcprefix)/ykval-config.php-template
+ 	install -D ykval-db.sql $(docprefix)/ykval-db.sql
+ 	install -D $(DOCS) $(docprefix)/
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/yubikey-val.git/commitdiff/b1ab5853d600c0fc62b2fea7b562ab31b81b27e2



More information about the pld-cvs-commit mailing list