vici: Use "gem"-assisted vici ruby gem building and installation
This commit is contained in:
parent
409f1fc144
commit
f684be6583
|
@ -1727,6 +1727,7 @@ AC_CONFIG_FILES([
|
||||||
src/libcharon/plugins/maemo/Makefile
|
src/libcharon/plugins/maemo/Makefile
|
||||||
src/libcharon/plugins/stroke/Makefile
|
src/libcharon/plugins/stroke/Makefile
|
||||||
src/libcharon/plugins/vici/Makefile
|
src/libcharon/plugins/vici/Makefile
|
||||||
|
src/libcharon/plugins/vici/ruby/Makefile
|
||||||
src/libcharon/plugins/updown/Makefile
|
src/libcharon/plugins/updown/Makefile
|
||||||
src/libcharon/plugins/dhcp/Makefile
|
src/libcharon/plugins/dhcp/Makefile
|
||||||
src/libcharon/plugins/unit_tester/Makefile
|
src/libcharon/plugins/unit_tester/Makefile
|
||||||
|
|
|
@ -67,3 +67,10 @@ vici_tests_LDFLAGS = @COVERAGE_LDFLAGS@
|
||||||
vici_tests_LDADD = \
|
vici_tests_LDADD = \
|
||||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||||
$(top_builddir)/src/libstrongswan/tests/libtest.la
|
$(top_builddir)/src/libstrongswan/tests/libtest.la
|
||||||
|
|
||||||
|
|
||||||
|
SUBDIRS =
|
||||||
|
|
||||||
|
if USE_RUBY_GEMS
|
||||||
|
SUBDIRS += ruby
|
||||||
|
endif
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
*.gem
|
*.gem
|
||||||
|
*.gemspec
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
vici.gemspec: $(srcdir)/vici.gemspec.in
|
||||||
|
$(AM_V_GEN) sed \
|
||||||
|
-e "s:@GEM_VERSION@:$(PACKAGE_VERSION):" \
|
||||||
|
$(srcdir)/vici.gemspec.in > $@
|
||||||
|
|
||||||
|
vici-$(PACKAGE_VERSION).gem: vici.gemspec
|
||||||
|
$(GEM) build vici.gemspec
|
||||||
|
|
||||||
|
all-local: vici-$(PACKAGE_VERSION).gem
|
||||||
|
|
||||||
|
clean-local:
|
||||||
|
rm -f vici.gemspec vici-$(PACKAGE_VERSION).gem
|
||||||
|
|
||||||
|
install-data-local: vici-$(PACKAGE_VERSION).gem
|
||||||
|
$(GEM) install --install-dir $(DESTDIR)$(RUBYGEMDIR) \
|
||||||
|
vici-$(PACKAGE_VERSION).gem
|
||||||
|
|
||||||
|
uninstall-local:
|
||||||
|
$(GEM) uninstall --install-dir $(DESTDIR)$(RUBYGEMDIR) \
|
||||||
|
--version $(PACKAGE_VERSION) vici
|
|
@ -1,6 +1,6 @@
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "vici"
|
s.name = "vici"
|
||||||
s.version = "0.0.1"
|
s.version = "@GEM_VERSION@"
|
||||||
s.authors = ["Martin Willi"]
|
s.authors = ["Martin Willi"]
|
||||||
s.email = ["martin@strongswan.ch"]
|
s.email = ["martin@strongswan.ch"]
|
||||||
s.description = %q{
|
s.description = %q{
|
Loading…
Reference in New Issue