]> gitweb.fluxo.info Git - mkbuilds.git/commitdiff
gnuradio: add move new config files procedure at doinst.sh
authorrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>
Mon, 8 Oct 2007 04:55:25 +0000 (04:55 +0000)
committerrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>
Mon, 8 Oct 2007 04:55:25 +0000 (04:55 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@17 18ef50b8-d735-4ccd-97c1-689132df3dd9

media/radio/gnuradio/gnuradio.mkbuild

index 1219b2c23a7ec95d3dc8b3678037aea3b23b0e11..b442071721c8a6c64bca0e1a4b367e559273c098 100644 (file)
@@ -60,7 +60,6 @@
 #------------------
 
 #>configure
-
 # get boost version
 boost="`basename $(ls /var/log/packages/boost-[0-9]* 2> /dev/null)`"
 
@@ -75,7 +74,8 @@ boost_version="`echo $boost | sed -e "s/^$pack-//" | cut -d "-" -f 1 | sed -e 's
 CFLAGS="$SLKCFLAGS" \
   CXXFLAGS="$SLKCFLAGS" \
   ./configure \
-  --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS --with-boost-include-dir=/usr/include/boost-$boost_version || exit $ERROR_CONF
+  --prefix="$PREFIX" --libdir="$LIBDIR" --sysconfdir=/etc \
+  --with-boost-include-dir=/usr/include/boost-$boost_version $CONF_OPTIONS || exit $ERROR_CONF
 </configure>
 #<configure
 
@@ -92,3 +92,17 @@ gnuradio:
 gnuradio:
 gnuradio:
 #<slackdesc
+
+#>build_package
+cd "$PKG"
+
+# config files
+echo '( chroot . /sbin/ldconfig )' > install/doinst.sh
+for conf in gnuradio-core gr-audio-alsa gr-audio-jack gr-audio-oss; do
+  mv etc/gnuradio/conf.d/$conf.conf etc/gnuradio/conf.d/$conf.conf.new
+  echo "( if [ ! -f "etc/gnuradio/conf.d/$conf.conf" ]; then mv etc/gnuradio/conf.d/$conf.conf.new etc/gnuradio/conf.d/$conf.conf ; fi )" >> install/doinst.sh
+done
+
+# Build the package
+makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+#<build_package