]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Initial support for Vagrant tmp/vagrant
authorAlexander Barton <alex@barton.de>
Thu, 3 Sep 2015 12:20:14 +0000 (14:20 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 21 Oct 2016 19:45:03 +0000 (21:45 +0200)
.gitignore
Makefile.am
Vagrantfile [new file with mode: 0644]
contrib/README
contrib/Vagrant/bootstrap.sh [new file with mode: 0644]

index e9b186ab9295319a7d8602a7efcc6adfe8805f4d..2987d365f43840a4bccebec34f3774b0374ca5d6 100644 (file)
@@ -24,6 +24,7 @@ install-sh
 missing
 ngircd.dest
 .deps
+.vagrant
 *.a
 *.o
 doc/sample-ngircd.conf
index d7ff72bc7b3df7ea0da788edf4a5ed964c4b9095..0b7603982c751d8fd24f64e837302773bb9bd79b 100644 (file)
@@ -20,6 +20,7 @@ clean-local: osxpkg-clean
 
 maintainer-clean-local:
        rm -rf autom4te.cache
+       rm -rf .vagrant
        rm -f Makefile.in Makefile aclocal.m4 configure configure.ac
        rm -f ar-lib mkinstalldirs missing depcomp install-sh
        rm -f config.log debian
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644 (file)
index 0000000..5e90267
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+Vagrant.configure(2) do |config|
+  config.vm.box = "debian/wheezy64"
+  config.vm.provision :shell, path: "contrib/Vagrant/bootstrap.sh"
+end
index 2d38cee9798301f213e8be5244f3a99a991f25ba..b7beaeebbe6599b716bd16c58bbe97f1343893ca 100644 (file)
@@ -2,7 +2,7 @@
                      ngIRCd - Next Generation IRC Server
                            http://ngircd.barton.de/
 
-               (c)2001-2013 Alexander Barton and Contributors.
+               (c)2001-2015 Alexander Barton and Contributors.
                ngIRCd is free software and published under the
                    terms of the GNU General Public License.
 
@@ -18,6 +18,9 @@ MacOSX/
  - Project files for XCode, the "project builder" of Apple Mac OS X.
        - de.barton.ngircd.plist[.tmpl]: launchd(8) property list.
 
+Vagrant/
+ - Various files used by Vagrant.
+
 ngindent
  - Script to indent the code of ngIRCd in the "standard way".
 
diff --git a/contrib/Vagrant/bootstrap.sh b/contrib/Vagrant/bootstrap.sh
new file mode 100644 (file)
index 0000000..9cca540
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# ngIRCd -- The Next Generation IRC Daemon
+# Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# Please read the file COPYING, README and AUTHORS for more information.
+#
+
+apt-get -y install autoconf automake expect telnet
+
+cd /vagrant
+[ -e Makefile ] && make distclean
+./autogen.sh
+
+mkdir -p /tmp/ngircd-build
+cd /tmp/ngircd-build
+
+/vagrant/configure --prefix=/opt/ngircd
+make
+make check
+make install