[leaf-commits] src/bering-uclibc4/source/libnl buildtool.cfg, NONE, 1.1 buildtool.mk, NONE, 1.1 libnl-1.1.tar.gz, NONE, 1.1

KP Kirchd?rfer <[email protected]>
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/libnl
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31006

Added Files:
	buildtool.cfg buildtool.mk libnl-1.1.tar.gz 
Log Message:
add netlink library


--- NEW FILE: libnl-1.1.tar.gz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = libnl
</File>

<File libnl-1.1.tar.gz>
  Server = cvs4-sourceforge
  Revision = HEAD
  envname = LIBNL_SOURCE
  Directory = libnl
</File>

      
<Package>
	<libnl>
		Version = 1.1
		Revision = 1

		Help <<EOF
		netlink library        
		Homepage: http://www.infradead.org/~tgr/libnl/ 
		LEAF package by __PACKAGER__, __BUILDDATE__		
		EOF
		
		<Permissions>
			Files = 644
			Directories = 755
		</Permissions>

		<Owner>
			Files = root:root
			Directories = root:root
		</Owner>
		
		<Contents>
			<File>          
				Filename        = usr/lib/libnl.so.1.1
				Source    	= usr/lib/libnl.so.1.1
				Type		= binary
				Permissions = 755
			</File>                 

			<File>
				Filename    = usr/lib/libnl.so
				Target      = usr/lib/libnl.so.1.1
				Type        = link
				Permissions = 755
			</File>			
			<File>
				Filename    = usr/lib/libnl.so.1
				Target      = usr/lib/libnl.so.1.1
				Type        = link
				Permissions = 755
			</File>			
		</Contents>			
	</libnl>
</Package>

--- NEW FILE: buildtool.mk ---
# makefile for libnl
include $(MASTERMAKEFILE)

LIBNL_DIR:=libnl-1.1
LIBNL_TARGET_DIR:=$(BT_BUILD_DIR)/libnl

$(LIBNL_DIR)/.source:
	zcat $(LIBNL_SOURCE) | tar -xvf -
	touch $(LIBNL_DIR)/.source

source: $(LIBNL_DIR)/.source
                        
$(LIBNL_DIR)/.configured: $(LIBNL_DIR)/.source
	(cd $(LIBNL_DIR) ; CFLAGS="$(BT_COPT_FLAGS)" CC=$(TARGET_CC) LD=$(TARGET_LD) ./configure)
	touch $(LIBNL_DIR)/.configured
                                                                 
$(LIBNL_DIR)/.build: $(LIBNL_DIR)/.configured
	mkdir -p $(LIBNL_TARGET_DIR)
	make -C $(LIBNL_DIR) all
	$(BT_STRIP)  --strip-unneeded $(LIBNL_DIR)/lib/libnlso.1.1 
	mkdir -p $(LIBNL_TARGET_DIR)/usr/lib
	mkdir -p $(LIBNL_TARGET_DIR)/usr/include
	cp -a $(LIBNL_DIR)/lib/*so* $(LIBNL_TARGET_DIR)/usr/lib
	cp -a -f $(LIBNL_TARGET_DIR)/usr/lib/* $(BT_STAGING_DIR)/usr/lib/
	touch $(LIBNL_DIR)/.build

build: $(LIBNL_DIR)/.build
                                                                                         
clean:
	make -C $(LIBNL_DIR) clean
	rm -rf $(LIBNL_TARGET_DIR)
	rm -rf $(LIBNL_DIR)/.build
	rm -rf $(LIBNL_DIR)/.configured
                                                                                                                 
srcclean: clean
	rm -rf $(LIBNL_DIR) 
	rm -rf $(LIBNL_DIR)/.source


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.