[yocto] recipe with optional dependency and configuration.

Alexandru Vaduva Alexandru.Vaduva at enea.com
Tue Feb 17 00:14:24 PST 2015


Thanks.

From: Hynek Petrak [mailto:hynek.petrak at gmail.com]
Sent: Tuesday, February 17, 2015 12:20 AM
To: Alexandru Vaduva
Cc: kaiu at gmx.de; yocto at yoctoproject.org
Subject: Re: [yocto] recipe with optional dependency and configuration.

I would swear, that I haven't done anything like that in the past, but looking back at the emails you are right. It's dated back to 2008, not sure whether it still according the build system requirements.

Cheers, Hynek

diff --git a/packages/smstools/makefile.patch b/packages/smstools/makefile.patch
new file mode 100644
index 0000000..12bf27f
--- /dev/null
+++ b/packages/smstools/makefile.patch
@@ -0,0 +1,20 @@
+--- smstools/Makefile           2008-12-07 19:40:13.160951393 +0100
++++ smstools/Makefile.new            2008-12-07 19:40:00.913636005 +0100
+@@ -2,7 +2,7 @@
+
+
+ compile:
+-        cd src && $(MAKE) -$(MAKEFLAGS)
++       cd src && $(MAKE) $(MAKEFLAGS)
+
+ install: compile
+          ./install.sh
+@@ -11,7 +11,7 @@
+          ./uninstall.sh
+
+ clean:
+-        cd src && $(MAKE) -$(MAKEFLAGS) clean
++       cd src && $(MAKE) $(MAKEFLAGS) clean
+
+ package: compile clean
+          ./package.sh
diff --git a/packages/smstools/smstools_2.2.20.bb<http://smstools_2.2.20.bb> b/packages/smstools/smstools_2.2.20.bb<http://smstools_2.2.20.bb>
new file mode 100644
index 0000000..b578e88
--- /dev/null
+++ b/packages/smstools/smstools_2.2.20.bb<http://smstools_2.2.20.bb>
@@ -0,0 +1,21 @@
+DESCRIPTION = "SMS Tools"
+DEPENDS = ""
+
+SRC_URI = "http://smstools.meinemullemaus.de/packages/smstools-${PV}.tar.gz<http://smstools.meinemullemaus.de/packages/smstools-$%7bPV%7d.tar.gz> \
+            file://makefile.patch;patch=1<file:///\\makefile.patch;patch=1> "
+S = "${WORKDIR}/${PN}"
+
+inherit autotools update-rc.d
+
+INITSCRIPT_NAME = "smsd"
+INITSCRIPT_PARAMS = "defaults 91 20"
+
+
+# CFLAGS_append = " -DPATH_MAX=4096"
+# CFLAGS_prepend = "-I${STAGING_INCDIR}/openssl "
+
+do_install_append() {
+          install -d ${D}/${sysconfdir}/init.d
+          echo -e "smsd -c /etc/smsd.conf" > ${D}/${sysconfdir}/init.d/smsd
+          chmod 755 ${D}/${sysconfdir}/init.d/smsd
+}


2015-02-16 14:59 GMT+02:00 Alexandru Vaduva <Alexandru.Vaduva at enea.com<mailto:Alexandru.Vaduva at enea.com>>:
It seems Hynek Petrak had some progress on this one a while back. Maybe the packages he posted and are nowhere to be found now could be revived.

Alex Vaduva

From: yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org> [mailto:yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org>] On Behalf Of Kai Ulrich
Sent: Monday, February 16, 2015 12:33 PM
To: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: [yocto] recipe with optional dependency and configuration.

Hi,
I'm new into yocto creating recipes.
After reading the Docu I feel confident with the basics.
So here my questions.

I want to create a recipe of smstools.
1. There is no repository (git / svn / cvs). There are sources to download.
http://smstools3.kekekasvi.com/index.php?p=packages
Q: In the philosophy of yocto / openembedded, is it better to create a own git or use the original source package.
2. For OPTIONAL statistics you can add this feature
- by enable it in the src/Makefile
- Install  OSSP mm Shared Memory Library<http://www.ossp.org/>
- mmlib is not part of the yocto / openembedded. So it has to be added too.

Q: How can I structure the recipes to add the smstools easy.
Q: How can provide the optional statistics feature.
Friendly regrades
Kai



--
Mgr. Hynek Petrak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150217/970e80a6/attachment.html>


More information about the yocto mailing list