diff options
author | danger <danger@FreeBSD.org> | 2009-04-24 01:30:10 +0800 |
---|---|---|
committer | danger <danger@FreeBSD.org> | 2009-04-24 01:30:10 +0800 |
commit | 3aefe327dcfc09eddcd50f536c89c7b9d42e712f (patch) | |
tree | b35811857a7bf2bf1a39ad7ef66e460ab32fc996 /sysutils | |
parent | fa6b106f13b433a35651a939b89ac50ae8a0fd4d (diff) | |
download | freebsd-ports-graphics-3aefe327dcfc09eddcd50f536c89c7b9d42e712f.tar.gz freebsd-ports-graphics-3aefe327dcfc09eddcd50f536c89c7b9d42e712f.tar.zst freebsd-ports-graphics-3aefe327dcfc09eddcd50f536c89c7b9d42e712f.zip |
- Add a port for sysinfo script that I wrote as part of my bachelor thesis
Reviewed by: pav@
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/sysinfo/Makefile | 40 | ||||
-rw-r--r-- | sysutils/sysinfo/distinfo | 3 | ||||
-rw-r--r-- | sysutils/sysinfo/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/sysinfo/pkg-plist | 19 |
5 files changed, 67 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 22f4566de73..ffb440b4649 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -723,6 +723,7 @@ SUBDIR += synergy SUBDIR += syscp SUBDIR += sysgather + SUBDIR += sysinfo SUBDIR += syslinux SUBDIR += syslog-ng SUBDIR += syslog-ng2 diff --git a/sysutils/sysinfo/Makefile b/sysutils/sysinfo/Makefile new file mode 100644 index 00000000000..47acee52564 --- /dev/null +++ b/sysutils/sysinfo/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: sysinfo +# Date created: 22 April 2009 +# Whom: Daniel Gerzo <danger@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= sysinfo +PORTVERSION= 0.8.5 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_LOCAL} \ + http://danger.rulez.sk/projects/sysinfo/ +MASTER_SITE_SUBDIR=danger + +MAINTAINER= danger@FreeBSD.org +COMMENT= Utility used to gather system configuration information + +NO_BUILD= yes +WRKSRC= ${WRKDIR}/${PORTNAME} + +post-patch: + @${REINPLACE_CMD} -e 's|common.subr|${DATADIR}/common.subr|g' ${WRKSRC}/sysinfo + @${REINPLACE_CMD} -e 's|sysinfo.conf|${PREFIX}/etc/sysinfo.conf|g' ${WRKSRC}/sysinfo + @${REINPLACE_CMD} -e 's|APPDIR=.|APPDIR=${DATADIR}|g' ${WRKSRC}/sysinfo.conf + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/sysinfo ${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/sysinfo.conf ${PREFIX}/etc/sysinfo.conf.sample + +post-install: + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/common.subr ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/LICENCE ${DATADIR} + (cd ${WRKSRC} && ${COPYTREE_BIN} modules ${DATADIR}) + + @if [ ! -f ${PREFIX}/etc/sysinfo.conf ]; then \ + ${CP} -p ${PREFIX}/etc/sysinfo.conf.sample ${PREFIX}/etc/sysinfo.conf ; \ + fi + +.include <bsd.port.mk> diff --git a/sysutils/sysinfo/distinfo b/sysutils/sysinfo/distinfo new file mode 100644 index 00000000000..8c6e6535396 --- /dev/null +++ b/sysutils/sysinfo/distinfo @@ -0,0 +1,3 @@ +MD5 (sysinfo-0.8.5.tar.gz) = 436662ce394afb5600f7fc18a2ee0fdd +SHA256 (sysinfo-0.8.5.tar.gz) = da4a66be99cd45ae5e3f6379a013956be9408edb9ca71026c10466d23ce4aff2 +SIZE (sysinfo-0.8.5.tar.gz) = 10948 diff --git a/sysutils/sysinfo/pkg-descr b/sysutils/sysinfo/pkg-descr new file mode 100644 index 00000000000..957a4701e68 --- /dev/null +++ b/sysutils/sysinfo/pkg-descr @@ -0,0 +1,4 @@ +Sysinfo is a tool used to gather various information about host system, +mainly its hardware and software configuraion. + +WWW: http://forums.freebsd.org/showthread.php?t=3282 diff --git a/sysutils/sysinfo/pkg-plist b/sysutils/sysinfo/pkg-plist new file mode 100644 index 00000000000..7f925115d64 --- /dev/null +++ b/sysutils/sysinfo/pkg-plist @@ -0,0 +1,19 @@ +sbin/sysinfo +share/sysinfo/LICENCE +share/sysinfo/common.subr +share/sysinfo/modules/bios +share/sysinfo/modules/cpu +share/sysinfo/modules/mem +share/sysinfo/modules/misc +share/sysinfo/modules/network +share/sysinfo/modules/os +share/sysinfo/modules/packages +share/sysinfo/modules/services +share/sysinfo/modules/storage +share/sysinfo/modules/system +share/sysinfo/modules/user +@dirrm share/sysinfo/modules +@dirrm share/sysinfo +@unexec if cmp -s %D/etc/sysinfo.conf.sample %D/etc/sysinfo.conf; then rm -f %D/etc/sysinfo.conf; fi +etc/sysinfo.conf.sample +@exec if [ ! -f %D/etc/sysinfo.conf ] ; then cp -p %D/%F %B/sysinfo.conf; fi |