You are not logged in.

#1 2004-03-09 15:35:59

drz
Member
From: Netherlands
Registered: 2003-08-24
Posts: 13
Website

ethtool, h2n, macchanger, and smartmontools

Hi,

I've posted these in /incoming/

ethtool

# Contributor: Pascal de Bruijn <keizerflipje@home.nl>

pkgname=ethtool
pkgver=1.8
pkgrel=2
pkgdesc="Display or change ethernet card settings"
url="http://sourceforge.net/projects/gkernel/"
depends=('glibc')
source=(http://dl.sourceforge.net/sourceforge/gkernel/$pkgname-$pkgver.tar.gz)
md5sums=('03236fc7329152f69b2d542b0825e3b4')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

h2n

# Contributor: Pascal de Bruijn <keizerflipje@home.nl>

pkgname=h2n
pkgver=4
pkgrel=2
pkgdesc="hosts to named conversion script"
url="http://www.oreilly.com/catalog/dns4"
depends=('perl')
source=(http://examples.oreilly.com/dns4/dns.4ed.tar.Z)
md5sums=('6f650d3b2228342171b4d1372e4bc54f')

build() {
  install -D -m755 $startdir/src/$pkgname/h2n $startdir/pkg/usr/bin/h2n
  install -D -m644 $startdir/src/$pkgname/h2n.man $startdir/pkg/usr/man/man8/h2n.man
}

ifenslave

# Contributor: Pascal de Bruijn <keizerflipje@home.nl>

pkgname=ifenslave
pkgver=2.4.25
pkgrel=2
pkgdesc="Configures network interfaces for parallel routing"
url="http://www.kernel.org"
depends=('glibc')
source=(ifenslave.c)
md5sums=('f5fb2adc033a4dc3cffa7e1c1b67f62d')

build() {
  mkdir $startdir/src/$pkgname-$pkgver
  cp $startdir/ifenslave.c $startdir/src/$pkgname-$pkgver/ifenslave.c
  cd $startdir/src/$pkgname-$pkgver
  gcc -march=$CARCH -O2 -Wall -Wstrict-prototypes -I/usr/src/linux/include ifenslave.c -o ifenslave || return 1
  install -D -m755 ifenslave $startdir/pkg/sbin/ifenslave
}

macchanger

# Contributor: Pascal de Bruijn <keizerflipje@home.nl>

pkgname=macchanger
pkgver=1.4.0
pkgrel=2
pkgdesc="A utility for viewing/manipulating the MAC address of network interfaces"
url="http://www.alobbs.com/macchanger/"
depends=('glibc')
source=(ftp://alobbs.com/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('f191b2933b6e37859260355f8d184c21')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

smartmontools

# Contributor: Pascal de Bruijn <keizerflipje@home.nl>

pkgname=smartmontools
pkgver=5.30
pkgrel=1
pkgdesc="Self-Monitoring, Analysis and Reporting Technology System"
url="http://smartmontools.sourceforge.net/"
depends=('glibc')
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz 
        smartd)
md5sums=('f5e7c23e605c75d59d3c4d5b0f9a987b' '83afc2b5b367f06c3548df3fd9aa238a')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --without-initscriptdir
  make || return 1
  make prefix=$startdir/pkg/usr install

  install -D -m755 $startdir/smartd $startdir/pkg/etc/rc.d/smartd
}

Note, these packages have only undergone the most basic testing, please do some regression testing of your own before using them in a production environment!

Enjoy,
Pascal de Bruijn


!! updated March 09, 2004 !!


Look I'm Doctor Zoidberg, home owner!

Offline

#2 2004-03-09 16:11:52

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: ethtool, h2n, macchanger, and smartmontools

thanx for your contribution

some comments about it:

- h2n is missing a description

- did you run namcap package.pkg.tar.gz with any?

- empty fields can be removed, to be easier to read the PKGBUILD: makedepends, conflicts ... are empty, so they are not needed


The impossible missions are the only ones which succeed.

Offline

#3 2004-03-09 16:30:39

drz
Member
From: Netherlands
Registered: 2003-08-24
Posts: 13
Website

Re: ethtool, h2n, macchanger, and smartmontools

hmmm, I didn't know the namcap tool yet, but it's cool...

I just checked the dependancies with ldd...

And I'll add the description..., I'll repost the packages tonight or tomorrow.


Look I'm Doctor Zoidberg, home owner!

Offline

#4 2004-03-09 16:41:14

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: ethtool, h2n, macchanger, and smartmontools

ldd works too, but is more work ... but always have a look at the pkg itself (while it configures e.g.) because ldd and namcap cannot give you dependences that a human mind can :-) (e.g.  when something is not linked, but needed)

you can also edit the first post and change the PKGBUILDs here too


The impossible missions are the only ones which succeed.

Offline

#5 2004-03-09 17:42:04

drz
Member
From: Netherlands
Registered: 2003-08-24
Posts: 13
Website

Re: ethtool, h2n, macchanger, and smartmontools


Look I'm Doctor Zoidberg, home owner!

Offline

Board footer

Powered by FluxBB