logmein-hamachi.paketlendi

This commit is contained in:
milisarge 2017-06-01 18:37:48 +03:00
parent c68fd0b70d
commit da0d203b21
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# /etc/rc.d/hamachi: start/stop hamachi daemon
#
case $1 in
start)
/usr/bin/hamachi
;;
stop)
killall -q hamachi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file

View File

@ -0,0 +1,34 @@
# Description: Bir vpn hizmeti.
# URL: https://www.vpn.net/linux
# Packager: kadanur
# Depends on:
name=logmein-hamachi
version=2.1.0.174
release=1.0
source=(https://www.vpn.net/installers/$name-$version-x64.tgz
hamachi.servis)
build() {
cd "${SRC}"/logmein-hamachi-2.1.0.174-x64
# Directories
install -d "${PKG}"/usr/bin
install -d "${PKG}"/opt/${name}/bin
install -d "${PKG}"/usr/share/licenses/${name}
# Files
install -m 755 hamachid "${PKG}"/opt/${name}/bin
install -m 755 dnsup "${PKG}"/opt/${name}/bin
install -m 755 dnsdown "${PKG}"/opt/${name}/bin
install -m 755 uninstall.sh "${PKG}"/opt/${name}
install -m 444 README "${PKG}"/opt/${name}
install -m 444 LICENSE "${PKG}"/opt/${name}
install -m 444 CHANGES "${PKG}"/opt/${name}
ln -sf "/opt/$name/bin/hamachid" "${PKG}"/usr/bin/hamachi
install -d $PKG/etc/rc.d/init.d
cp $SRC/hamachi.servis $PKG/etc/rc.d/init.d/hamachid
}