cgminer/Makefile |
9 | 9 | include $(TOPDIR)/rules.mk |
10 | 10 | |
11 | 11 | PKG_NAME:=cgminer |
12 | | PKG_VERSION:=20121225 |
13 | | PKG_REV:=b9c7f3d169942417e04f13fab6e86d944aff37cb |
14 | | # this is upstream version 2.10.2 |
| 12 | PKG_VERSION:=2.10.4 |
15 | 13 | PKG_RELEASE:=1 |
16 | 14 | PKG_INSTALL:=1 |
17 | 15 | |
18 | | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz |
19 | | PKG_SOURCE_URL:=git://github.com/ckolivas/cgminer.git |
20 | | PKG_SOURCE_PROTO:=git |
| 16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 17 | PKG_SOURCE_URL:=http://ck.kolivas.org/apps/cgminer/ |
21 | 18 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
22 | | PKG_SOURCE_VERSION:=$(PKG_REV) |
23 | 19 | |
24 | 20 | PKG_FIXUP:=autoreconf |
25 | 21 | |
cgminer/files/20-cgminer.hotplug |
6 | 6 | if [ "${PRODUCT}" = "403/6001/600" ] && [ "${INTERFACE}" = "255/255/255" ] && [ "$TYPE" = "0/0/0" ]; then |
7 | 7 | case "$ACTION" in |
8 | 8 | add) |
9 | | killall -s 9 cgminer |
10 | | ntpd -d -n -q -N -p 0.openwrt.pool.ntp.org \ |
11 | | -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org && \ |
| 9 | /etc/init.d/cgminer stop |
12 | 10 | /etc/init.d/cgminer start & |
13 | 11 | ;; |
14 | 12 | remove) |
... | ... | |
20 | 18 | if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then |
21 | 19 | case "$ACTION" in |
22 | 20 | add) |
23 | | killall -s 9 cgminer |
24 | | ntpd -d -n -q -N -p 0.openwrt.pool.ntp.org \ |
25 | | -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org && \ |
| 21 | /etc/init.d/cgminer stop |
26 | 22 | /etc/init.d/cgminer start & |
27 | 23 | ;; |
28 | 24 | remove) |
cgminer/root-files/etc/config/firewall |
| 1 | |
| 2 | config 'defaults' |
| 3 | option 'syn_flood' '1' |
| 4 | option 'input' 'ACCEPT' |
| 5 | option 'output' 'ACCEPT' |
| 6 | option 'forward' 'REJECT' |
| 7 | |
| 8 | config 'zone' |
| 9 | option 'name' 'lan' |
| 10 | option 'network' 'lan' |
| 11 | option 'input' 'ACCEPT' |
| 12 | option 'output' 'ACCEPT' |
| 13 | option 'forward' 'REJECT' |
| 14 | |
| 15 | config 'zone' |
| 16 | option 'name' 'wan' |
| 17 | option 'input' 'REJECT' |
| 18 | option 'output' 'ACCEPT' |
| 19 | option 'forward' 'REJECT' |
| 20 | option 'masq' '1' |
| 21 | option 'mtu_fix' '1' |
| 22 | option 'network' 'wan wwan' |
| 23 | |
| 24 | config 'forwarding' |
| 25 | option 'src' 'lan' |
| 26 | option 'dest' 'wan' |
| 27 | |
| 28 | config 'rule' |
| 29 | option 'name' 'Allow-DHCP-Renew' |
| 30 | option 'src' 'wan' |
| 31 | option 'proto' 'udp' |
| 32 | option 'dest_port' '68' |
| 33 | option 'target' 'ACCEPT' |
| 34 | option 'family' 'ipv4' |
| 35 | |
| 36 | config 'rule' |
| 37 | option 'name' 'Allow-Ping' |
| 38 | option 'src' 'wan' |
| 39 | option 'proto' 'icmp' |
| 40 | option 'icmp_type' 'echo-request' |
| 41 | option 'family' 'ipv4' |
| 42 | option 'target' 'ACCEPT' |
| 43 | |
| 44 | config 'rule' |
| 45 | option 'name' 'Allow-DHCPv6' |
| 46 | option 'src' 'wan' |
| 47 | option 'proto' 'udp' |
| 48 | option 'src_ip' 'fe80::/10' |
| 49 | option 'src_port' '547' |
| 50 | option 'dest_ip' 'fe80::/10' |
| 51 | option 'dest_port' '546' |
| 52 | option 'family' 'ipv6' |
| 53 | option 'target' 'ACCEPT' |
| 54 | |
| 55 | config 'rule' |
| 56 | option 'name' 'Allow-ICMPv6-Input' |
| 57 | option 'src' 'wan' |
| 58 | option 'proto' 'icmp' |
| 59 | list 'icmp_type' 'echo-request' |
| 60 | list 'icmp_type' 'destination-unreachable' |
| 61 | list 'icmp_type' 'packet-too-big' |
| 62 | list 'icmp_type' 'time-exceeded' |
| 63 | list 'icmp_type' 'bad-header' |
| 64 | list 'icmp_type' 'unknown-header-type' |
| 65 | list 'icmp_type' 'router-solicitation' |
| 66 | list 'icmp_type' 'neighbour-solicitation' |
| 67 | option 'limit' '1000/sec' |
| 68 | option 'family' 'ipv6' |
| 69 | option 'target' 'ACCEPT' |
| 70 | |
| 71 | config 'rule' |
| 72 | option 'name' 'Allow-ICMPv6-Forward' |
| 73 | option 'src' 'wan' |
| 74 | option 'dest' '*' |
| 75 | option 'proto' 'icmp' |
| 76 | list 'icmp_type' 'echo-request' |
| 77 | list 'icmp_type' 'destination-unreachable' |
| 78 | list 'icmp_type' 'packet-too-big' |
| 79 | list 'icmp_type' 'time-exceeded' |
| 80 | list 'icmp_type' 'bad-header' |
| 81 | list 'icmp_type' 'unknown-header-type' |
| 82 | option 'limit' '1000/sec' |
| 83 | option 'family' 'ipv6' |
| 84 | option 'target' 'ACCEPT' |
| 85 | |
| 86 | config 'include' |
| 87 | option 'path' '/etc/firewall.user' |
| 88 | |
| 89 | config 'zone' |
| 90 | option 'name' 'newzone' |
| 91 | option 'input' 'ACCEPT' |
| 92 | option 'forward' 'REJECT' |
| 93 | option 'network' ' ' |
| 94 | option 'output' 'ACCEPT' |
| 95 | |
| 96 | config 'rule' |
| 97 | option 'target' 'ACCEPT' |
| 98 | option 'src' 'wan' |
| 99 | option 'dest_port' '22' |
| 100 | option 'name' 'ssh' |
| 101 | option 'family' 'ipv4' |
| 102 | option 'proto' 'tcp udp' |
| 103 | |
| 104 | config 'rule' |
| 105 | option 'target' 'ACCEPT' |
| 106 | option 'src' 'wan' |
| 107 | option 'dest_port' '80' |
| 108 | option 'name' 'web' |
| 109 | option 'family' 'ipv4' |
| 110 | option 'proto' 'tcp udp' |
| 111 | |
| 112 | config 'rule' |
| 113 | option 'target' 'ACCEPT' |
| 114 | option 'src' 'wan' |
| 115 | option 'dest_port' '4028' |
| 116 | option 'name' 'cgminer' |
| 117 | option 'family' 'ipv4' |
| 118 | option 'proto' 'tcp udp' |
| 119 | |