aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fancontroled
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-23 09:50:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-23 09:50:09 +0000
commit9ea110264d066b3b84bc37767072b0d70a998a1b (patch)
treeced0d419d3f7d13b43c6865d7a49ff5028bd7fa1 /testing/fancontroled
parent3f70619ab971cd3a7a3f547333d6da079d09418d (diff)
downloadaports-9ea110264d066b3b84bc37767072b0d70a998a1b.tar.bz2
aports-9ea110264d066b3b84bc37767072b0d70a998a1b.tar.xz
testing/fancontroled: new aport
a temperature dependent fan speed control http://fancontroled.lukaperkov.net/ ref #1175
Diffstat (limited to 'testing/fancontroled')
-rw-r--r--testing/fancontroled/APKBUILD40
-rw-r--r--testing/fancontroled/link.patch11
2 files changed, 51 insertions, 0 deletions
diff --git a/testing/fancontroled/APKBUILD b/testing/fancontroled/APKBUILD
new file mode 100644
index 0000000000..30890d39c2
--- /dev/null
+++ b/testing/fancontroled/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=fancontroled
+pkgver=0.1
+pkgrel=0
+pkgdesc="a temperature dependent fan speed control"
+url="http://fancontroled.lukaperkov.net/"
+arch="all"
+license="GPLv3"
+depends=""
+makedepends="lm_sensors-dev"
+install=""
+subpackages=""
+source="http://code.lukaperkov.net/fancontroled/fancontroled-$pkgver.tar
+ link.patch"
+
+_builddir="$srcdir"/fancontroled-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/sbin
+ make install DESTDIR="$pkgdir" || return 1
+}
+
+md5sums="8c3a7efa99e58216ad4633d1e6ed1358 fancontroled-0.1.tar
+099a824ba948f1f01da8d374024357fd link.patch"
diff --git a/testing/fancontroled/link.patch b/testing/fancontroled/link.patch
new file mode 100644
index 0000000000..328e78062d
--- /dev/null
+++ b/testing/fancontroled/link.patch
@@ -0,0 +1,11 @@
+--- ./Makefile.orig
++++ ./Makefile
+@@ -12,7 +12,7 @@
+ OBJECTS = $(SOURCES:.c=.o)
+
+ $(FANCONTROLED_TARGET): $(OBJECTS) $(HEADERS)
+- $(CC) $(CFLAGS) $(LDFLAGS) $(INC_PATH) $(LIBS) $(OBJECTS) -D $(MACROS) -o $(FANCONTROLED_TARGET)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(INC_PATH) $(OBJECTS) -D $(MACROS) -o $(FANCONTROLED_TARGET) $(LIBS)
+
+ $(OBJECTS): $(SOURCES)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(INC_PATH) $(LIBS) -D $(MACROS) -c $(@:.o=.c)