2012-05-24 14:43:25 +02:00
|
|
|
VERSION = 2.16
|
2009-12-15 22:33:15 +01:00
|
|
|
PACKAGE = yubikey-val
|
2010-04-23 21:35:26 +02:00
|
|
|
CODE = COPYING Makefile NEWS ykval-checksum-clients.php \
|
2010-03-12 10:45:23 +01:00
|
|
|
ykval-common.php ykval-config.php ykval-db.php ykval-db.sql \
|
|
|
|
ykval-export.php ykval-import.php ykval-log.php ykval-ping.php \
|
|
|
|
ykval-queue.php ykval-revoke.php ykval-synclib.php \
|
|
|
|
ykval-sync.php ykval-verify.php
|
2011-10-31 08:00:41 +01:00
|
|
|
MUNIN = ykval-munin-ksmlatency.php ykval-munin-vallatency.php \
|
|
|
|
ykval-munin-queuelength.php
|
2010-02-22 14:46:24 +01:00
|
|
|
DOCS = doc/ClientInfoFormat.wiki doc/Installation.wiki \
|
|
|
|
doc/RevocationService.wiki doc/ServerReplicationProtocol.wiki \
|
2010-03-12 10:45:23 +01:00
|
|
|
doc/SyncMonitor.wiki doc/Troubleshooting.wiki
|
2009-11-20 08:22:11 +01:00
|
|
|
|
2009-12-15 22:33:15 +01:00
|
|
|
all:
|
|
|
|
@echo "Try 'make install' or 'make symlink'."
|
2010-01-19 07:54:33 +01:00
|
|
|
@echo "Docs: http://code.google.com/p/$(PROJECT)/wiki/Installation"
|
2009-12-15 22:33:15 +01:00
|
|
|
@exit 1
|
2009-11-20 08:22:11 +01:00
|
|
|
|
2009-12-15 22:33:15 +01:00
|
|
|
# Installation rules.
|
2009-11-20 08:22:11 +01:00
|
|
|
|
2009-12-15 16:38:46 +01:00
|
|
|
etcprefix = /etc/ykval
|
|
|
|
sbinprefix = /usr/sbin
|
|
|
|
phpprefix = /usr/share/ykval
|
|
|
|
docprefix = /usr/share/doc/ykval
|
2010-06-22 17:57:24 +02:00
|
|
|
muninprefix = /usr/share/munin/plugins
|
2009-12-15 17:11:10 +01:00
|
|
|
wwwgroup = www-data
|
2009-12-15 16:38:46 +01:00
|
|
|
|
|
|
|
install:
|
2011-11-01 12:24:45 +01:00
|
|
|
install -D --mode 644 ykval-verify.php $(DESTDIR)$(phpprefix)/ykval-verify.php
|
|
|
|
install -D --mode 644 ykval-common.php $(DESTDIR)$(phpprefix)/ykval-common.php
|
|
|
|
install -D --mode 644 ykval-synclib.php $(DESTDIR)$(phpprefix)/ykval-synclib.php
|
|
|
|
install -D --mode 644 ykval-sync.php $(DESTDIR)$(phpprefix)/ykval-sync.php
|
|
|
|
install -D --mode 644 ykval-db.php $(DESTDIR)$(phpprefix)/ykval-db.php
|
|
|
|
install -D --mode 644 ykval-log.php $(DESTDIR)$(phpprefix)/ykval-log.php
|
2011-10-31 08:07:47 +01:00
|
|
|
install -D ykval-queue.php $(DESTDIR)$(sbinprefix)/ykval-queue
|
|
|
|
install -D ykval-export.php $(DESTDIR)$(sbinprefix)/ykval-export
|
|
|
|
install -D ykval-import.php $(DESTDIR)$(sbinprefix)/ykval-import
|
|
|
|
install -D ykval-checksum-clients.php $(DESTDIR)$(sbinprefix)/ykval-checksum-clients
|
|
|
|
install -D ykval-munin-ksmlatency.php $(DESTDIR)$(muninprefix)/ykval_ksmlatency
|
|
|
|
install -D ykval-munin-vallatency.php $(DESTDIR)$(muninprefix)/ykval_vallatency
|
|
|
|
install -D ykval-munin-queuelength.php $(DESTDIR)$(muninprefix)/ykval_queuelength
|
|
|
|
install -D --backup --mode 640 --group $(wwwgroup) ykval-config.php $(DESTDIR)$(etcprefix)/ykval-config.php-template
|
2011-11-01 12:24:45 +01:00
|
|
|
install -D --mode 644 ykval-db.sql $(DESTDIR)$(docprefix)/ykval-db.sql
|
|
|
|
install -D --mode 644 $(DOCS) $(DESTDIR)$(docprefix)/
|
2009-12-15 16:38:46 +01:00
|
|
|
|
2009-12-15 16:55:09 +01:00
|
|
|
wwwprefix = /var/www/wsapi
|
|
|
|
|
|
|
|
symlink:
|
2011-10-31 08:07:47 +01:00
|
|
|
install -d $(DESTDIR)$(wwwprefix)/2.0
|
|
|
|
ln -sf $(phpprefix)/ykval-verify.php $(DESTDIR)$(wwwprefix)/2.0/verify.php
|
|
|
|
ln -sf $(phpprefix)/ykval-sync.php $(DESTDIR)$(wwwprefix)/2.0/sync.php
|
|
|
|
ln -sf 2.0/verify.php $(DESTDIR)$(wwwprefix)/verify.php
|
2009-12-15 16:55:09 +01:00
|
|
|
|
2010-02-22 14:34:15 +01:00
|
|
|
revoke:
|
2011-11-01 12:24:45 +01:00
|
|
|
install -D --mode 644 ykval-revoke.php $(DESTDIR)$(phpprefix)/ykval-revoke.php
|
2011-10-31 08:07:47 +01:00
|
|
|
ln -sf $(phpprefix)/ykval-revoke.php $(DESTDIR)$(wwwprefix)/revoke.php
|
2010-02-22 14:34:15 +01:00
|
|
|
|
2009-12-15 22:33:15 +01:00
|
|
|
# Maintainer rules.
|
|
|
|
|
2009-11-20 08:22:11 +01:00
|
|
|
PROJECT=yubikey-val-server-php
|
2011-08-18 14:20:14 +02:00
|
|
|
USER=simon@josefsson.org
|
2011-05-09 16:31:54 +02:00
|
|
|
KEYID=2117364A
|
2009-11-20 08:22:11 +01:00
|
|
|
|
2009-12-15 22:33:15 +01:00
|
|
|
$(PACKAGE)-$(VERSION).tgz: $(FILES)
|
2012-02-22 14:25:20 +01:00
|
|
|
git submodule init
|
|
|
|
git submodule update
|
2009-12-15 22:33:15 +01:00
|
|
|
mkdir $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION)/doc
|
2011-10-31 08:00:41 +01:00
|
|
|
cp $(CODE) $(MUNIN) $(PACKAGE)-$(VERSION)/
|
2009-12-15 22:33:15 +01:00
|
|
|
cp $(DOCS) $(PACKAGE)-$(VERSION)/doc/
|
|
|
|
tar cfz $(PACKAGE)-$(VERSION).tgz $(PACKAGE)-$(VERSION)
|
|
|
|
rm -rf $(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
dist: $(PACKAGE)-$(VERSION).tgz
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~
|
|
|
|
rm -rf $(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
release: dist
|
2009-11-20 08:22:11 +01:00
|
|
|
gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tgz
|
|
|
|
gpg --verify $(PACKAGE)-$(VERSION).tgz.sig
|
2012-02-22 12:16:00 +01:00
|
|
|
git push
|
2012-05-09 10:07:41 +02:00
|
|
|
git tag -u $(KEYID)! -m $(VERSION) yubikey-val-$(VERSION)
|
2012-02-22 12:16:00 +01:00
|
|
|
git push --tags
|
2009-11-20 08:22:11 +01:00
|
|
|
googlecode_upload.py -s "OpenPGP signature for $(PACKAGE) $(VERSION)." \
|
|
|
|
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tgz.sig
|
|
|
|
googlecode_upload.py -s "$(PACKAGE) $(VERSION)." \
|
|
|
|
-p $(PROJECT) -u $(USER) $(PACKAGE)-$(VERSION).tgz
|