I wrote an ebuild to install the netstat LCDd (LCDproc) client "netlcdclient". This is my first ebuild so if you recognize any issues, please report. 1. Download netlcdclient-0.2.2.ebuild.tar.bz2 2. unpack it to /usr/local/portage 3. do '# ACCEPT_KEYWORDS="~x86" emerge netlcdclient' hope it works :)
Created attachment 30592 [details] netlcdclient-0.2.2.ebuild.tar.bz2
Reattach as text/plain please.
Created attachment 30674 [details] netlcdclient-0.2.2.ebuild This is the ebuild in plain text. It needs three more files (netlcdclient, netlcdclient.conf, netlcdclient-0.2.2.diff) in it's files/ dir.
wanna try this too =?
I get a compile error: >>> emerge (1 of 1) app-misc/netlcdclient-0.2.2 to / >>> md5 files ;-) netlcdclient-0.2.2.ebuild >>> md5 files ;-) files/digest-netlcdclient-0.2.2 >>> md5 files ;-) files/netlcdclient.conf >>> md5 files ;-) files/netlcdclient-0.2.2.diff >>> md5 files ;-) files/netlcdclient >>> md5 src_uri ;-) netlcdclient-0.2.2.tar.gz >>> Unpacking source... >>> Unpacking netlcdclient-0.2.2.tar.gz to /var/tmp/portage/netlcdclient-0.2.2/work /usr/lib/portage/bin/ebuild.sh: line 20: epatch: command not found >>> Source unpacked. gcc -Wall -march=athlon-xp -O3 -pipe -fomit-frame-pointer -c netlcdclient.c -DVERSION=\"0.2.2\" gcc -march=athlon-xp -O3 -pipe -fomit-frame-pointer -c sockets.c netlcdclient.c:299:17: missing terminating " character netlcdclient.c: In function `usage': netlcdclient.c:301: error: `i' undeclared (first use in this function) netlcdclient.c:301: error: (Each undeclared identifier is reported only once netlcdclient.c:301: error: for each function it appears in.) netlcdclient.c:301: error: syntax error before '...' token netlcdclient.c:301: error: stray '\' in program netlcdclient.c:301: error: stray '\' in program netlcdclient.c:301: error: stray '\' in program netlcdclient.c:301: error: stray '\' in program netlcdclient.c:301: error: stray '\' in program netlcdclient.c:301: error: stray '\' in program netlcdclient.c:301: error: stray '\' in program netlcdclient.c:309: error: stray '\' in program netlcdclient.c:309: error: stray '\' in program netlcdclient.c:309: error: stray '\' in program netlcdclient.c:309: error: stray '\' in program netlcdclient.c:309: error: stray '\' in program netlcdclient.c:309: error: stray '\' in program netlcdclient.c:315:1: missing terminating " character netlcdclient.c: In function `format_value': netlcdclient.c:506: warning: integer constant is too large for "long" type netlcdclient.c:506: warning: comparison is always true due to limited range of data type netlcdclient.c:519: warning: integer constant is too large for "long" type netlcdclient.c:519: warning: comparison is always false due to limited range of data type netlcdclient.c: In function `format_value_multi_interface': netlcdclient.c:598: warning: integer constant is too large for "long" type netlcdclient.c:598: warning: comparison is always true due to limited range of data type netlcdclient.c:617: warning: integer constant is too large for "long" type netlcdclient.c:617: warning: comparison is always false due to limited range of data type make: *** [netlcdclient.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: app-misc/netlcdclient-0.2.2 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. ---------------------------------------------- Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) XP 2100+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 3 2005, 13:36:23)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.nutsmaas.nl/gentoo/" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow aalib acpi alsa apache2 apm berkdb bitmap-fonts crypt cups curl debug dedicated emboss encode ethereal exif foomaticdb fortran ftp gd gdbm gif icq imagemagick imap imlib ipv6 irc jabber jpeg libg++ libwww mad maildir mbox memlimit mikmod mime mmx motif mp3 mpeg msn mysql ncurses ncursus nls nptl nptlonly ogg oggvorbis oss pam pdflib perl php png python quicktime readline samba session sharedmem snmp sockets speex spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS I was just trying to create an ebuild for mpd_LCD, but I can't use this ebuild as an example now.
Created attachment 58884 [details] netlcdclient-0.2.3.ebuild
Created attachment 58885 [details] netlcdclient-0.2.3.tar.bz2 1. Download netlcdclient-0.2.2.ebuild.tar.bz2 2. unpack it to /usr/local/portage 3. do '# ACCEPT_KEYWORDS="~x86" emerge netlcdclient' The attachment "netlcdclient-0.2.3.ebuild" is just the ebuild, it needs two more files (netlcdclient, netlcdclient.conf) in it's files/ dir.
That one (0.2.3) works for me, thanks for creating it. I'm going to use this one as a template for other clients, I've never created an ebuild before so I hope it works out well.
Looks like fitting into lcd herd, Rob?
I have reworked the ebuild at [1], but I am unsure about the category naming. Also, the package does not support the current lcdproc-0.5.0 api. I contacted the author of the program to see if it is still maintained. [1] http://overlays.gentoo.org/dev/jokey/browser/trunk/app-misc/netlcdclient
As we have an LCD alias now, reassigning, sorry for bugspam
Created attachment 99652 [details] netlcdclient-0.2.3.ebuild I reworked the ebuild, included a patchset by Markus Dolze, and changed some lines myself. Nevertheless, I found out that the client is included in lcdproc-0.5.0 already as 'iface' screen (doh!) and was heavily improved, so working with these unmaintained sources does not seem a too great idea.
Created attachment 99653 [details] netlcdclient-0.2.3-additional-files.tar.gz netlcdclient.confd and netlcdclient.initd for 'files' netlcdclient-0.2.3-md-patchset.patch.gz has to be in SRC_URI
I'm tempted to say the same as if the support is already provided, why mess with old and possibly broken sources?
Due to no activity, WONTFIX