mirror of
https://github.com/leonardw/synology-open-vm-tools.git
synced 2025-08-16 17:36:51 +00:00
modified: Makefile
new file: cross/htop/Makefile new file: cross/htop/PLIST new file: spk/htop/Makefile new file: spk/htop/PLIST new file: spk/htop/src/dsm-control.sh new file: spk/htop/src/htop.png new file: spk/htop/src/installer.sh
This commit is contained in:
2
Makefile
2
Makefile
@ -70,7 +70,7 @@ toolchain-%:
|
||||
kernel-%:
|
||||
-@cd kernel/syno-$*/ && MAKEFLAGS= $(MAKE)
|
||||
|
||||
setup: local.mk dsm-4.3
|
||||
setup: local.mk dsm-5.1
|
||||
|
||||
local.mk:
|
||||
@echo "Creating local configuration \"local.mk\"..."
|
||||
|
17
cross/htop/Makefile
Normal file
17
cross/htop/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
PKG_NAME = htop
|
||||
PKG_VERS = 1.0.3
|
||||
PKG_EXT = tar.gz
|
||||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
|
||||
PKG_DIST_SITE = http://hisham.hm/htop/releases/1.0.3
|
||||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
|
||||
|
||||
DEPENDS = cross/ncurses
|
||||
|
||||
HOMEPAGE = http://hisham.hm/htop/
|
||||
COMMENT = An interactive process viewer for Linux
|
||||
LICENSE = GPLv2
|
||||
|
||||
GNU_CONFIGURE = 1
|
||||
CONFIGURE_ARGS = --disable-unicode
|
||||
|
||||
include ../../mk/spksrc.cross-cc.mk
|
1
cross/htop/PLIST
Normal file
1
cross/htop/PLIST
Normal file
@ -0,0 +1 @@
|
||||
bin:bin/htop
|
23
spk/htop/Makefile
Executable file
23
spk/htop/Makefile
Executable file
@ -0,0 +1,23 @@
|
||||
SPK_NAME = htop
|
||||
SPK_VERS = 1.0.3
|
||||
SPK_REV = 1
|
||||
SPK_ICON = src/htop.png
|
||||
|
||||
DEPENDS = cross/$(SPK_NAME)
|
||||
|
||||
MAINTAINER = SynoCommunity
|
||||
DESCRIPTION = an interactive process viewer for Linux
|
||||
RELOAD_UI = no
|
||||
DISPLAY_NAME = htop
|
||||
STARTABLE = no
|
||||
CHANGELOG = "Initial release"
|
||||
|
||||
HOMEPAGE = http://hisham.hm/htop/
|
||||
LICENSE = GPLv2
|
||||
|
||||
INSTALLER_SCRIPT = src/installer.sh
|
||||
SSS_SCRIPT = src/dsm-control.sh
|
||||
|
||||
INSTALL_PREFIX = /usr/local/$(SPK_NAME)
|
||||
|
||||
include ../../mk/spksrc.spk.mk
|
0
spk/htop/PLIST
Executable file
0
spk/htop/PLIST
Executable file
24
spk/htop/src/dsm-control.sh
Executable file
24
spk/htop/src/dsm-control.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Package
|
||||
PACKAGE="htop"
|
||||
DNAME="htop"
|
||||
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
exit 0
|
||||
;;
|
||||
stop)
|
||||
exit 0
|
||||
;;
|
||||
status)
|
||||
exit 0
|
||||
;;
|
||||
log)
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
BIN
spk/htop/src/htop.png
Normal file
BIN
spk/htop/src/htop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
50
spk/htop/src/installer.sh
Executable file
50
spk/htop/src/installer.sh
Executable file
@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Package
|
||||
PACKAGE="htop"
|
||||
DNAME="htop"
|
||||
|
||||
# Others
|
||||
INSTALL_DIR="/usr/local/${PACKAGE}"
|
||||
|
||||
|
||||
preinst ()
|
||||
{
|
||||
exit 0
|
||||
}
|
||||
|
||||
postinst ()
|
||||
{
|
||||
# Link
|
||||
ln -s ${SYNOPKG_PKGDEST} ${INSTALL_DIR}
|
||||
|
||||
# Put htop in the PATH
|
||||
mkdir -p /usr/local/bin
|
||||
ln -s ${INSTALL_DIR}/bin/htop /usr/local/bin/htop
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
preuninst ()
|
||||
{
|
||||
exit 0
|
||||
}
|
||||
|
||||
postuninst ()
|
||||
{
|
||||
# Remove link
|
||||
rm -f ${INSTALL_DIR}
|
||||
rm -f /usr/local/bin/htop
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
preupgrade ()
|
||||
{
|
||||
exit 0
|
||||
}
|
||||
|
||||
postupgrade ()
|
||||
{
|
||||
exit 0
|
||||
}
|
Reference in New Issue
Block a user