create inferno package

This commit is contained in:
Neale Pickett 2011-08-16 16:33:38 -06:00
parent 385f4630d3
commit 7b7f6ce212
5 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,29 @@
INFERNO_PKGDIR = $(TARGET)/inferno
INFERNO_BUILDDIR = $(BUILD)/inferno
INFERNO_FNORD_CACHE = $(CACHE)/fnord.git
INFERNO_FNORD_URL = http://woozle.org/~neale/projects/fnord
$(INFERNO_FNORD_CACHE):
git clone --bare $(INFERNO_FNORD_URL) $@
inferno-source: $(INFERNO_BUILDDIR)
$(INFERNO_BUILDDIR): $(INFERNO_FNORD_CACHE)
git clone $< $@
inferno-build: $(INFERNO_BUILDDIR)/build
$(INFERNO_BUILDDIR)/build: $(INFERNO_BUILDDIR)
$(MAKE) -C $(INFERNO_BUILDDIR) fnord-idx
inferno-install: $(INFERNO_BUILDDIR)/build
mkdir -p $(INFERNO_PKGDIR)/bin
cp $(INFERNO_BUILDDIR)/fnord-idx $(INFERNO_PKGDIR)/bin/
$(call COPYTREE, packages/inferno/service, $(INFERNO_PKGDIR)/service)
inferno-clean:
rm -rf $(INFERNO_PKGDIR) $(INFERNO_BUILDDIR)
$(MAKE) -C packages/inferno/src clean
PACKAGES += inferno

View File

@ -0,0 +1,3 @@
#! /bin/sh
exec svlogd -tt $PWD

View File

@ -0,0 +1,8 @@
#! /bin/sh
exec 2>&1
cd /var/www
exec tcpsvd -u localhost 0 80 /opt/inferno/bin/fnord-idx . .

View File

@ -0,0 +1,3 @@
#! /bin/sh
exec svlogd -tt $PWD

View File

@ -0,0 +1,11 @@
#! /bin/sh
exec 2>&1
mkdir -p /mnt/inferno
mount -o ro LABEL=inferno /mnt/inferno
ln -s /mnt/inferno /var/www
ip addr add eth0 10.0.0.2/24
exec inotifyd true $PWD