First commit
This commit is contained in:
commit
0a28bac78a
37 changed files with 1963 additions and 0 deletions
47
openwrt/Makefile
Normal file
47
openwrt/Makefile
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gclog
|
||||
PKG_VERSION:=0.2.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.dateihal.de/$(PKG_NAME)
|
||||
#PKG_MD5SUM:=
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/gclog
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Geiger Counter Logger
|
||||
URL:=http://www.dateihal.de/cms/gclog
|
||||
MAINTAINER:=Steffen Lange <gclog@stelas.de>
|
||||
endef
|
||||
|
||||
define Package/gclog/description
|
||||
GCLOG is a lightweight daemon running in the background and
|
||||
constantly reporting your Geiger counter readings to various
|
||||
radiation monitoring websites.
|
||||
endef
|
||||
|
||||
define Package/gclog/conffiles
|
||||
/etc/gclog.conf
|
||||
endef
|
||||
|
||||
define Package/gclog/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gclog $(1)/usr/bin/
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/gclog.conf $(1)/etc/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/gclogd $(1)/etc/init.d/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,gclog))
|
||||
14
openwrt/buildenv.sh
Executable file
14
openwrt/buildenv.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Setup buildroot
|
||||
# ---------------
|
||||
# 1. Download OpenWrt SDK, ex. Barrier Breaker 14.07 for ar71xx architecture:
|
||||
# http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
|
||||
# 2. Extract archive to ~/OpenWrt
|
||||
# 3. Modify toolchain path if needed
|
||||
# 4. Execute "source buildenv.sh"
|
||||
|
||||
export STAGING_DIR="~/OpenWrt/staging_dir"
|
||||
export CC="${STAGING_DIR}/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc"
|
||||
|
||||
echo 'Build environment set, now run "make".'
|
||||
16
openwrt/gclogd
Executable file
16
openwrt/gclogd
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# GCLOG init script
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
|
||||
START=99
|
||||
STOP=20
|
||||
|
||||
start() {
|
||||
echo start
|
||||
/usr/bin/gclog -c /etc/gclog.conf
|
||||
}
|
||||
|
||||
stop() {
|
||||
echo stop
|
||||
/usr/bin/killall gclog
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue