CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
signify: initial import
[crossrootfs.git] / sysklogd / Pkgfile
index 16f98da13266dd1f8d56d2f788db8a88da23df2d..641b5c07600c912f90bb977d63e4d4173b205a02 100644 (file)
@@ -1,31 +1,30 @@
 # Description: Kernel and system logging daemons
 # URL: http://www.infodrom.org/projects/sysklogd/
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on:
 
 name=sysklogd
-version=1.5
-release=4
-source=(http://www.ibiblio.org/pub/Linux/system/daemons/$name-$version.tar.gz \
-        rotatelog syslog syslog.conf sysklogd)
+version=1.5.1
+release=6
+source=(http://www.infodrom.org/projects/$name/download/$name-$version.tar.gz \
+        rotatelog syslog syslog.conf sysklogd sysklogd.diff)
 
 build() {
   cd $name-$version
 
-  # don't try to fclose(NULL)
-  sed -i -e '192d' ksym_mod.c
+  patch -p1 -i $SRC/sysklogd.diff
 
-  mkdir -p $PKG/usr/sbin \
-           $PKG/etc/{cron/weekly,rc.d} \
-           $PKG/var/log \
-           $PKG/usr/man/{man5,man8}
+  install -d $PKG/usr/sbin \
+             $PKG/etc/{cron/weekly,rc.d} \
+             $PKG/var/log \
+             $PKG/usr/share/man/{man5,man8}
 
   # no strip sysklogd and klogd binaries
   sed -e 's|${INSTALL} -m 500 -s|${INSTALL} -m 500|' -i Makefile
 
   make RPM_OPT_FLAGS="$CFLAGS" CC="$CC" all
-  make BINDIR=$PKG/usr/sbin MANDIR=$PKG/usr/man install
+  make BINDIR=$PKG/usr/sbin MANDIR=$PKG/usr/share/man install
 
   install -m 755 $SRC/rotatelog $PKG/usr/sbin
   install -m 755 $SRC/syslog $PKG/etc/cron/weekly
@@ -33,6 +32,6 @@ build() {
   install -m 755 $SRC/sysklogd $PKG/etc/rc.d
 
   chmod -R +w $PKG
-  touch $PKG/var/log/{messages,auth,mail}
-  chmod 640 $PKG/var/log/{messages,auth,mail}
+  touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
+  chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
 }