1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 10:52:15 +01:00
yubikey-val/Makefile

85 lines
3.1 KiB
Makefile
Raw Normal View History

VERSION = 2.10
2009-12-15 21:33:15 +00:00
PACKAGE = yubikey-val
2010-04-23 19:35:26 +00:00
CODE = COPYING Makefile NEWS ykval-checksum-clients.php \
2010-03-12 09:45:23 +00: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
2010-02-22 13:46:24 +00:00
DOCS = doc/ClientInfoFormat.wiki doc/Installation.wiki \
doc/RevocationService.wiki doc/ServerReplicationProtocol.wiki \
2010-03-12 09:45:23 +00:00
doc/SyncMonitor.wiki doc/Troubleshooting.wiki
2009-11-20 07:22:11 +00:00
2009-12-15 21:33:15 +00:00
all:
@echo "Try 'make install' or 'make symlink'."
2010-01-19 06:54:33 +00:00
@echo "Docs: http://code.google.com/p/$(PROJECT)/wiki/Installation"
2009-12-15 21:33:15 +00:00
@exit 1
2009-11-20 07:22:11 +00:00
2009-12-15 21:33:15 +00:00
# Installation rules.
2009-11-20 07:22:11 +00:00
2009-12-15 15:38:46 +00:00
etcprefix = /etc/ykval
sbinprefix = /usr/sbin
phpprefix = /usr/share/ykval
docprefix = /usr/share/doc/ykval
2010-06-22 15:57:24 +00:00
muninprefix = /usr/share/munin/plugins
2009-12-15 16:11:10 +00:00
wwwgroup = www-data
2009-12-15 15:38:46 +00:00
install:
install -D ykval-verify.php $(phpprefix)/ykval-verify.php
install -D ykval-common.php $(phpprefix)/ykval-common.php
install -D ykval-synclib.php $(phpprefix)/ykval-synclib.php
install -D ykval-sync.php $(phpprefix)/ykval-sync.php
install -D ykval-db.php $(phpprefix)/ykval-db.php
2010-01-11 14:22:40 +00:00
install -D ykval-log.php $(phpprefix)/ykval-log.php
2010-01-11 15:15:27 +00:00
install -D ykval-queue.php $(sbinprefix)/ykval-queue
2010-01-25 15:34:58 +00:00
install -D ykval-export.php $(sbinprefix)/ykval-export
2010-01-25 16:33:02 +00:00
install -D ykval-import.php $(sbinprefix)/ykval-import
2010-03-12 09:45:23 +00:00
install -D ykval-checksum-clients.php $(sbinprefix)/ykval-checksum-clients
2010-06-22 16:05:39 +00:00
install -D ykval-munin-ksmlatency.php $(muninprefix)/ykval_ksmlatency
2010-11-15 10:33:01 +00:00
install -D ykval-munin-vallatency.php $(muninprefix)/ykval_vallatency
2010-08-02 13:49:34 +00:00
install -D ykval-munin-queuelength.php $(muninprefix)/ykval_queuelength
2010-03-12 09:50:58 +00:00
install -D --backup --mode 640 --group $(wwwgroup) ykval-config.php $(etcprefix)/ykval-config.php-template
2009-12-15 15:38:46 +00:00
install -D ykval-db.sql $(docprefix)/ykval-db.sql
install -D $(DOCS) $(docprefix)/
2009-12-15 15:55:09 +00:00
wwwprefix = /var/www/wsapi
symlink:
install -d $(wwwprefix)/2.0
ln -sf $(phpprefix)/ykval-verify.php $(wwwprefix)/2.0/verify.php
ln -sf $(phpprefix)/ykval-sync.php $(wwwprefix)/2.0/sync.php
ln -sf 2.0/verify.php $(wwwprefix)/verify.php
2010-02-22 13:34:15 +00:00
revoke:
install -D ykval-revoke.php $(phpprefix)/ykval-revoke.php
ln -sf $(phpprefix)/ykval-revoke.php $(wwwprefix)/revoke.php
2009-12-15 21:33:15 +00:00
# Maintainer rules.
2009-11-20 07:22:11 +00:00
PROJECT=yubikey-val-server-php
2010-05-17 13:27:53 +00:00
USER=simon@yubico.com
2011-05-09 14:31:54 +00:00
KEYID=2117364A
2009-11-20 07:22:11 +00:00
2009-12-15 21:33:15 +00:00
$(PACKAGE)-$(VERSION).tgz: $(FILES)
mkdir $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION)/doc
cp $(CODE) $(PACKAGE)-$(VERSION)/
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 07:22:11 +00:00
gpg --detach-sign --default-key $(KEYID) $(PACKAGE)-$(VERSION).tgz
gpg --verify $(PACKAGE)-$(VERSION).tgz.sig
svn copy https://$(PROJECT).googlecode.com/svn/trunk/ \
https://$(PROJECT).googlecode.com/svn/tags/$(PACKAGE)-$(VERSION) \
-m "Tagging the $(VERSION) release of the $(PACKAGE) project."
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