CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
db: updated to 5.3.28
[crossrootfs.git] / sysvinit / Pkgfile
index 55eeab89bd9673fbb9437a110b7737b22ef6eeb2..4f6cca54fc73d3a7f06471dfb8528767bcdc9acf 100644 (file)
@@ -1,30 +1,23 @@
 # Description: The Linux System V Init
 # URL: ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX ARM System Team
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on:
 
 name=sysvinit
-version=2.86
-release=5
-source=(ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/$name-$version.tar.gz \
-        http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-sysroot/patches/$name-$version-fixes-1.patch)
+version=2.88
+release=1
+source=(http://download.savannah.gnu.org/releases/$name/$name-${version}dsf.tar.bz2)
 
 build() {
-  cd $name-$version
-  patch -p1 -i $SRC/$name-$version-fixes-1.patch
-  sed -e 's|/dev/initctl|$(ROOT)&|g' \
-      -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
-      -e '/^ifeq/s/$(ROOT)//' \
-      -e 's|/usr/lib|$(ROOT)&|' \
-      -i src/Makefile
-
+  cd $name-${version}dsf
   make -C src CC="$CC"
-  mkdir -p $PKG/{bin,sbin,dev,usr/{bin,sbin,include,share/man/{man1,man5,man8}}}
-  make -C src ROOT=$PKG install
-  mv $PKG/usr/share/man $PKG/usr
-  rm -rf $PKG/usr/share
-  mkdir -p $PKG/var/log
+  make -C src ROOT=$PKG MANDIR=/usr/man install
+  # Provided by util-linux
+  rm $PKG/{bin/mountpoint,usr/bin/utmpdump}
+  rm $PKG/usr/man/man1/{mountpoint,utmpdump}.1
+
+  install -d $PKG/var/log
   touch $PKG/var/log/wtmp
   touch $PKG/var/log/btmp
   chmod 0600 $PKG/var/log/btmp