X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=nodeconfig.spec;h=93e1d7db8ca38ecbabf571b2bf0215651de47fd8;hb=751ed9960c8d86104ac39046a53c80de4cdd5528;hp=a7ff4cbc8af1324bb555e10babaa9bdbbdea8216;hpb=6b03e12139634660e73c98734f83be88b378471e;p=nodeconfig.git diff --git a/nodeconfig.spec b/nodeconfig.spec index a7ff4cb..93e1d7d 100644 --- a/nodeconfig.spec +++ b/nodeconfig.spec @@ -40,8 +40,11 @@ reasons these scripts get installed in /var/www/html/PlanetLabConf. %setup -q %build -echo "There is no build stage for this component." -echo "All files just need to be installed as is from the codebase." +EXCLUDE="exclude=kernel* iptables iproute util-vserver*" +for filein in $(find . -name '*.in') ; do + file=$(echo $filein | sed -e "s,\.in$,,") + sed -e "s,@EXCLUDE@,$EXCLUDE,g" $filein > $file +done %install rm -rf $RPM_BUILD_ROOT @@ -52,7 +55,7 @@ for dir in boot PlanetLabConf PLCAPI ; do mkdir -p $RPM_BUILD_ROOT/var/www/html/$dir done # let's be conservative and exclude codebase files, though there should not be any -rsync -a --exclude \*.spec --exclude .svn --exclude CVS ./ $RPM_BUILD_ROOT/var/www/html/ +rsync -a --exclude \*.spec --exclude .svn --exclude \*.in ./ $RPM_BUILD_ROOT/var/www/html/ %clean rm -rf $RPM_BUILD_ROOT