talimat 903 B

123456789101112131415161718192021222324252627282930313233
  1. # Tanım: Bir vpn hizmeti.
  2. # URL: https://www.vpn.net/linux
  3. # Paketçi: kadanur
  4. # Gerekler:
  5. # Grup: ağ
  6. isim=logmein-hamachi
  7. surum=2.1.0.174
  8. devir=1
  9. kaynak=(https://www.vpn.net/installers/$isim-$surum-x64.tgz
  10. hamachi.servis)
  11. derle() {
  12. cd "${SRC}"/logmein-hamachi-2.1.0.174-x64
  13. # Directories
  14. install -d "${PKG}"/usr/bin
  15. install -d "${PKG}"/opt/${isim}/bin
  16. install -d "${PKG}"/usr/share/licenses/${isim}
  17. # Files
  18. install -m 755 hamachid "${PKG}"/opt/${isim}/bin
  19. install -m 755 dnsup "${PKG}"/opt/${isim}/bin
  20. install -m 755 dnsdown "${PKG}"/opt/${isim}/bin
  21. install -m 755 uninstall.sh "${PKG}"/opt/${isim}
  22. install -m 444 README "${PKG}"/opt/${isim}
  23. install -m 444 LICENSE "${PKG}"/opt/${isim}
  24. install -m 444 CHANGES "${PKG}"/opt/${isim}
  25. ln -sf "/opt/$isim/bin/hamachid" "${PKG}"/usr/bin/hamachi
  26. install -d $PKG/etc/rc.d/init.d
  27. cp $SRC/hamachi.servis $PKG/etc/rc.d/init.d/hamachid
  28. }