Skip to content

Latest commit

 

History

History
100 lines (69 loc) · 2.95 KB

README.md

File metadata and controls

100 lines (69 loc) · 2.95 KB

H2O Unofficial Debian package builder

Build Status

This provides H2O debian directory and required files e.g. SysVinit, systemd service etc. to build Debian package for Debian and Ubuntu.

If you search RPM package, please see h2o-rpm

How to use prebuilt Debian package

This has Bintray Debian package repository so if you'd like to just install such a prebuilt package, please do following.

# Add GPG key
curl -SL 'https://bintray.com/user/downloadSubjectPublicKey?username=bintray' | sudo apt-key add -

# If your system is Debian jessie (8.x)
echo "deb http://dl.bintray.com/tatsushid/h2o-deb jessie-backports main" | sudo tee /etc/apt/sources.list.d/bintray-tatsushid-h2o.list

# If your system is Debian stretch (9.x)
echo "deb http://dl.bintray.com/tatsushid/h2o-deb stretch-backports main" | sudo tee /etc/apt/sources.list.d/bintray-tatsushid-h2o.list

# If your system is Debian buster (10.x)
echo "deb http://dl.bintray.com/tatsushid/h2o-deb buster-backports main" | sudo tee /etc/apt/sources.list.d/bintray-tatsushid-h2o.list

# If your system is Ubuntu trusty (14.04)
echo "deb http://dl.bintray.com/tatsushid/h2o-deb trusty-backports main" | sudo tee /etc/apt/sources.list.d/bintray-tatsushid-h2o.list

# If your system is Ubuntu xenial (16.04)
echo "deb http://dl.bintray.com/tatsushid/h2o-deb xenial-backports main" | sudo tee /etc/apt/sources.list.d/bintray-tatsushid-h2o.list

# If your system is Ubuntu bionic (18.04)
echo "deb http://dl.bintray.com/tatsushid/h2o-deb bionic-backports main" | sudo tee /etc/apt/sources.list.d/bintray-tatsushid-h2o.list

Once it has done, you can install packages in the repository by

sudo apt-get update
sudo apt-get install h2o

How to build Debian package

If you have a docker environment, you can build Debian packages by just running

make

If you'd like to build Debian package for specific distribution, please run a command like following

make debian8

Now this understands

  • debian8
  • debian9
  • debian10
  • ubuntu1404
  • ubuntu1604
  • ubuntu1804

build options.

To build Debian package in your server without docker, please copy files under src/debian to your build system

Installing Debian package

After building, please copy Debian package under *.build directory to your system and run

dpkg -i h2o_2.2.6-1_amd64.deb

Once the installation finishes successfully, you can see a configuration file at /etc/h2o/h2o.conf.

To start h2o, please run

systemctl enable h2o.service
systemctl start h2o.service

License

This is under MIT License. Please see the LICENSE file for details.