diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
commit | ca9627e70852f6b2e835660df870fe3ab405882d (patch) | |
tree | 0a008b1d5b16fa0679a195ed7b5662c7891f591c /sci-electronics/adas/adas-3.3.1.ebuild | |
download | darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2 darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip |
Initial import
Diffstat (limited to 'sci-electronics/adas/adas-3.3.1.ebuild')
-rw-r--r-- | sci-electronics/adas/adas-3.3.1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sci-electronics/adas/adas-3.3.1.ebuild b/sci-electronics/adas/adas-3.3.1.ebuild new file mode 100644 index 0000000..e4ef1d9 --- /dev/null +++ b/sci-electronics/adas/adas-3.3.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +inherit eutils + +DESCRIPTION="Unified Aragats Data Acquisition System" +SRC_URI="http://dside.dyndns.org/files/adas/${P}.tar.bz2" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 amd64" + +DEPEND="dev-libs/libxml2 + >=dev-libs/libds-0.1.3 + www-servers/apache" +RDEPEND="${DEPEND} + app-misc/lcdproc + net-misc/ntp" + +src_compile() { + make -C adas || die + make -C clients || die + make -C namt/emu || die + make -C tools +} + +src_install() { + into /usr + dobin adas/adas-srv || die + dobin misc/adas.pl || die + dobin misc/adas_error || die + dobin misc/adas_xml2ascii || die + cp -P -f misc/adas_xml2csv ${D}/usr/bin || die + dobin misc/adas_ascii2xml || die + dobin clients/adas-simple || die + dobin tools/nettest || die + cp -P -f tools/nettest-* ${D}/usr/bin/ + dobin namt/emu/namt-emu || die + newinitd misc/adas.gentoo adas + newinitd misc/adas-eden.gentoo adas-eden + + dodir /etc + dodir /etc/cron.hourly + dodir /etc/cron.daily + + install -m 644 adas/adas.cfg ${D}/etc/adas.cfg.example + install -m 755 misc/adas-eden.cron ${D}/etc/cron.hourly/adas + install -m 755 misc/adas-clean.cron ${D}/etc/cron.hourly/adas-clean + install -m 755 misc/adas-ntp.pl ${D}/etc/cron.hourly/adas-ntp.pl + + install -m 755 misc/adas-clean.cfg ${D}/etc/adas-clean.cfg + chown apache:apache ${D}/etc/adas-clean.cfg + + install -m 755 emu/ascii.pl ${D}/usr/bin/adas-emu-ascii.pl + + dodir /var/www/localhost/ + cp -R web ${D}/var/www/localhost/ + mv ${D}/var/www/localhost/web ${D}/var/www/localhost/htdocs + + keepdir /var/www/localhost/htdocs/data + keepdir /var/www/localhost/htdocs/conf/flags + + chown -R apache:apache ${D}/var/www/localhost/htdocs/conf || die +} |