Added iproute2-2.6.31 build template.

--HG--
extra : convert_revision : 19b214a453c06a072dfd720c81857de0918606f7
This commit is contained in:
Juan RP 2010-02-23 23:09:12 +01:00
parent 2ab0197006
commit 6bfc693a43
2 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,54 @@
--- Makefile 2009-11-11 22:05:21.251407668 +0100
+++ Makefile 2009-11-11 22:07:09.891833516 +0100
@@ -1,11 +1,12 @@
DESTDIR=/usr/
ROOTDIR=$(DESTDIR)
LIBDIR=/usr/lib/
-SBINDIR=/sbin
+SBINDIR=/usr/sbin
CONFDIR=/etc/iproute2
-DOCDIR=/share/doc/iproute2
-MANDIR=/share/man
+DOCDIR=/usr/share/doc/iproute2
+MANDIR=/usr/share/man
ARPDDIR=/var/lib/arpd
+SHAREDIR=/usr/share
# Path to db_185.h include
DBM_INCLUDE:=$(ROOTDIR)/usr/include
--- netem/Makefile 2009-11-11 22:05:21.284750207 +0100
+++ netem/Makefile 2009-11-11 22:07:54.674736924 +0100
@@ -20,9 +20,9 @@
$(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
install: all
- mkdir -p $(DESTDIR)/lib/tc
+ mkdir -p $(DESTDIR)/${SHAREDIR}/tc
for i in $(DISTDATA); \
- do install -m 755 $$i $(DESTDIR)/lib/tc; \
+ do install -m 755 $$i $(DESTDIR)/${SHAREDIR}/tc; \
done
clean:
--- tc/tc_util.c 2009-11-11 22:05:21.298076943 +0100
+++ tc/tc_util.c 2009-11-11 22:09:32.865152646 +0100
@@ -24,8 +24,8 @@
#include "utils.h"
#include "tc_util.h"
-#ifndef LIBDIR
-#define LIBDIR "/usr/lib/"
+#ifndef SHAREDIR
+#define SHAREDIR "/usr/share"
#endif
const char *get_tc_lib(void)
@@ -34,7 +34,7 @@
lib_dir = getenv("TC_LIB_DIR");
if (!lib_dir)
- lib_dir = LIBDIR "/tc/";
+ lib_dir = SHAREDIR "/tc/";
return lib_dir;
}

24
srcpkgs/iproute2/template Normal file
View file

@ -0,0 +1,24 @@
# Template file for 'iproute2'
pkgname=iproute2
version=2.6.31
distfiles="http://devresources.linux-foundation.org/dev/iproute2/download/iproute2-$version.tar.bz2"
build_style=gnu_configure
short_desc="IP Routing Utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=56875eaed9c581645422d89e00fa7da512256c82ac3dae3c5051ff6827e83152
long_desc="
Iproute2 is a collection of utilities for controlling TCP/IP networking
and traffic control in Linux."
conf_files="
/etc/iproute2/ematch_map
/etc/iproute2/rt_dsfield
/etc/iproute2/rt_protos
/etc/iproute2/rt_realms
/etc/iproute2/rt_scopes
/etc/iproute2/rt_tables"
Add_dependency run glibc
Add_dependency run db
Add_dependency full perl
Add_dependency build db-devel