|
|
Jump to this file's LXR Page |
|
|
File: [CENS] / emstar / fusd / initscripts / build-ipkg.sh
(download)
/
(as text)
Revision: 1.3, Wed Jul 28 23:08:19 2004 UTC (5 years, 3 months ago) by eugene Branch: MAIN CVS Tags: rdd_alpha_version_1, pregeonet, nims-lab-Sep07-2004, mote, acoustic-05-18-06, PRE_TOSNIC_FIX, PRE_NOMEGA_MOTENIC, PRE_CEILING_FIX, PRE_64BIT, MOTENIC_PRE_BUGFIX_20050415, LAURA_CALIBRATION_EXPERIMENTS, HOSTMOTE_PROTOCOL_VERSION_7, HOSTMOTE_PROTOCOL_VERSION_6_WITH_HOSTMOAP, HOSTMOTE_PROTOCOL_VERSION_5_WITH_HOSTMOAP, HEAD, ESS_RELEASE_3_5, ESS_RELEASE_3_4, ESS_RELEASE_3_3, ESS_RELEASE_3_2, ESS_RELEASE_3_1, ESS_RELEASE_3_0, ESS_RELEASE_2_0, ESS_CONNECTIVITY, ESS_CENTROUTE_TESTING, ESS2-CMS-V1_5_pretest, ESS2-CMS-V1_4cMergeSympathy_2, ESS2-CMS-V1_4c, ESS2-CMS-V1_4b, ESS2-CMS-V1_4a, ESS2-CMS-V1_3, ESS2-CMS-V1_2, ESS2-CMS-V1_1, ESS2-CMS-V1_0, EMSTAR_RELEASE_2_5, EMSTAR_RELEASE_2_1_BRANCH, EMSTAR_RELEASE_2_1, EMSTAR_RELEASE_2_0, EMSTAR_PRE_HTML, CYCLOPS_RELEASE_CANDIDATE_2_0, CYCLOPS_PRERELEASE_STABLE, CENTROUTE_EMSTAR_SOCKETS, BG_1_0, BANGLADESH_ARSENIC_1_2, BANGLADESH_ARSENIC_1_1, AMARSS_JR_DEPLOYMENT_6_05_07 Changes since 1.2: +8 -2 lines - There were some stupid mistakes with the build-ipkg.sh script - This version rearranges the order of steps in prerm and also removes the links in the runlevels once I remove fusdd initscript - also stopped stripping of kfusd.o |
#!/bin/sh PACKAGE_NAME=fusd # directories EMSTAR_DIR=/export/home/eugene/emstar OBJDIR=$EMSTAR_DIR/obj.ipaq-sa KERNELVERSION=2.4.19-rmk6-pxa1-hh30 TOPDIR=/export/home/eugene/IPKGBUILD/$PACKAGE_NAME # ipkg-build location and output IPKGBUILD_DIR=/usr/local/bin IPKGBUILD_OUTPUT_DIR=$TOPDIR/../output # clear old directory rm -fr $TOPDIR # make directory structure mkdir -p $TOPDIR/lib/modules/$KERNELVERSION/misc mkdir -p $TOPDIR/etc/init.d mkdir -p $TOPDIR/usr/bin mkdir -p $IPKGBUILD_OUTPUT_DIR # copy the fusdd daemon and the kernel module cp -f $OBJDIR/fusd/kfusd.o $TOPDIR/lib/modules/$KERNELVERSION/misc cp -f $OBJDIR/fusd/fusdd $TOPDIR/usr/bin # strip the binaries #arm-linux-strip $TOPDIR/lib/modules/$KERNELVERSION/misc/kfusd.o arm-linux-strip $TOPDIR/usr/bin/fusdd # copy the initscript cp -f $EMSTAR_DIR/fusd/initscripts/fusdd-debian $TOPDIR/etc/init.d/fusdd # generate the CONTROL directory and create the control file mkdir -p $TOPDIR/CONTROL # There is a better way to do... echo "Package: fusd" > $TOPDIR/CONTROL/control echo "Priority: optional" >> $TOPDIR/CONTROL/control echo "Version: 0.0.1" >> $TOPDIR/CONTROL/control echo "Architecture: arm" >> $TOPDIR/CONTROL/control echo "Maintainer: Eugene Shih < eugene () lcs ! mit ! edu >" >> $TOPDIR/CONTROL/control echo "Depends: libglib2.0-0" >> $TOPDIR/CONTROL/control echo "Section: net" >> $TOPDIR/CONTROL/control echo "Description: The FUSDD daemon for the ipaq" >> $TOPDIR/CONTROL/control # the conffiles ... none # generate the postinst script echo "#!/bin/sh" > $TOPDIR/CONTROL/postinst echo "" >> $TOPDIR/CONTROL/postinst echo "echo \"Starting the FUSD daemon...\"" >> $TOPDIR/CONTROL/postinst echo "/etc/init.d/fusdd start" >> $TOPDIR/CONTROL/postinst echo "/usr/sbin/update-rc.d fusdd defaults 99" >> $TOPDIR/CONTROL/postinst # generate the prerm script echo "#!/bin/sh" > $TOPDIR/CONTROL/prerm echo "" >> $TOPDIR/CONTROL/prerm echo "echo \"Stopping fusd...\"" >> $TOPDIR/CONTROL/prerm echo "/etc/init.d/fusdd stop" >> $TOPDIR/CONTROL/prerm echo "/usr/sbin/update-rc.d -f fusdd remove" >> $TOPDIR/CONTROL/prerm # generate the postrm script echo "#!/bin/sh" > $TOPDIR/CONTROL/postrm echo "" >> $TOPDIR/CONTROL/postrm echo "rm -f $TOPDIR/lib/modules/$KERNELVERSION/misc/kfusd.o" >> $TOPDIR/CONTROL/postrm # change permissions chmod +x $TOPDIR/CONTROL/prerm chmod +x $TOPDIR/CONTROL/postrm chmod +x $TOPDIR/CONTROL/postinst # execute the ipkg-build command $IPKGBUILD_DIR/ipkg-build $TOPDIR $IPKGBUILD_OUTPUT_DIR
| CENS CVS Mailing List |
Powered by ViewCVS 0.9.2 |