Skip to contentSkip to conversation

cronie: Updates to cronie

PATCH Applied [email protected] 4 participants 12 messages Aug 22, 2011 – Aug 26, 2011

lore
Share & tools
lore
#0 lore raw

cover cronie: Updates to cronie

From: Wenzong Fan <[email protected]>

Some minor updates to cronie.

The following changes since commit edd8e1e8b974eb3f0f9f66c2207aadf43612350b:
Scott Rifenbark (1):
documentation/adt-manual/adt-command.xml: general edits.

are available in the git repository at:

git://git.pokylinux.org/poky-contrib wenzong/update_cronie
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/update_cronie

Wenzong Fan (1):
cronie: Updates to cronie

 meta/recipes-extended/cronie/cronie/crond.init |    2 --
 meta/recipes-extended/cronie/cronie_1.4.8.bb   |    8 ++++++--
 2 files changed, 6 insertions(+), 4 deletions(-)
#1 lore raw

PATCH 1/1 cronie: Updates to cronie

From: Wenzong Fan <[email protected]>

1) Add required pam plugins to RDEPENDS list;
2) Correct configure option that used for enable pam support;
3) Create empty crond config file cron.deny;
4) Don't set readonly variable UID in crond init script.

---
 meta/recipes-extended/cronie/cronie/crond.init |    2 --
 meta/recipes-extended/cronie/cronie_1.4.8.bb   |    8 ++++++--
 2 files changed, 6 insertions(+), 4 deletions(-)
meta/recipes-extended/cronie/cronie/crond.init +0 -2
index 050c37e..08f34be 100755
@@ -21,8 +21,6 @@ CONFIG=/etc/sysconfig/crond
 # Source function library.
 . /etc/init.d/functions
 
-UID=`id -u`
-
 case "$1" in
   start)
     if [ $UID -ne 0 ] ; then
meta/recipes-extended/cronie/cronie_1.4.8.bb +6 -2
index 4cfdfad..064347e 100644
@@ -15,7 +15,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=963ea0772a2adbdcd607a9b2ec320c11 \
 SECTION = "utils"
 
 DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
-PR = "r0"
+RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}"
+PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid"
+
+PR = "r1"
 
 SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \
            file://crond.init \
@@ -31,7 +34,7 @@ SRC_URI[sha256sum] = "a3b910876f255712f1a5c364b74f34b0ceac9f6f3bbc45e854c5722785
 inherit autotools update-rc.d
 
 EXTRA_OECONF += "\
-                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-libpam', '--without-libpam', d)}"
+                ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}"
 
 INITSCRIPT_NAME = "crond"
 INITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ."
@@ -50,6 +53,7 @@ do_install_append () {
 	mkdir -p ${D}${sysconfdir}/cron.daily
 	mkdir -p ${D}${sysconfdir}/cron.weekly
 	mkdir -p ${D}${sysconfdir}/cron.monthly
+	touch ${D}${sysconfdir}/cron.deny
 }
 
 FILES_${PN} += "${sysconfdir}/cron*"
Signature · 1 line
1.7.0.4
#2 lore raw

new feature? (for "DL_DIR")

In reply to [email protected]

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

Signature · 4 lines
Yi Qingliang
倪庆亮

Insigma
#3 lore raw

Re: new feature? (for "DL_DIR")

Quoted 5 lines · Ni Qingliang

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

Just add these lines to your .conf (I put them in my ${DISTRO}.conf):
# Provide pre-staged sources
SOURCE_MIRROR_URL ?= "file:///opt/amltd/poky/sources/" INHERIT += "own-mirrors"

Simply point SOURCE_MIRROR_URL at your file cache.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#4 lore raw

Re: new feature? (for "DL_DIR")

Quoted 7 lines · Gary Thomas
Quoted 5 lines · Ni Qingliang

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

Quoted 7 lines

Just add these lines to your .conf (I put them in my ${DISTRO}.conf):
# Provide pre-staged sources
SOURCE_MIRROR_URL ?= "file:///opt/amltd/poky/sources/" INHERIT += "own-mirrors"

Simply point SOURCE_MIRROR_URL at your file cache.

You could also use PREMIRRORS in the developer's local.conf, point
PREMIRRORS for packages to your internal server (could be ftp, http or file when mounted via NFS).

Sau!

#5 lore raw

Re: new feature? (for "DL_DIR")

Quoted 13 lines · Saul Wold
Quoted 12 lines · Gary Thomas
Quoted 5 lines · Ni Qingliang

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

Just add these lines to your .conf (I put them in my ${DISTRO}.conf):
# Provide pre-staged sources
SOURCE_MIRROR_URL ?= "file:///opt/amltd/poky/sources/" INHERIT += "own-mirrors"

Quoted 4 lines
Quoted 2 lines

Simply point SOURCE_MIRROR_URL at your file cache.

You could also use PREMIRRORS in the developer's local.conf, point
PREMIRRORS for packages to your internal server (could be ftp, http or file when mounted via NFS).

But then you end up typing all the patterns for the various file types, etc.

own-mirrors does all that for you by creating a PREMIRRORS variable based on the single SOURCE_MIRROR_URL

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#6 lore raw

Re: new feature? (for "DL_DIR")

Quoted 16 lines · Gary Thomas
Quoted 15 lines · Saul Wold
Quoted 14 lines · Gary Thomas
Quoted 5 lines · Ni Qingliang

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

Just add these lines to your .conf (I put them in my ${DISTRO}.conf):
# Provide pre-staged sources
SOURCE_MIRROR_URL ?= "file:///opt/amltd/poky/sources/" INHERIT += "own-mirrors"

Simply point SOURCE_MIRROR_URL at your file cache.

Quoted 7 lines
Quoted 2 lines

You could also use PREMIRRORS in the developer's local.conf, point
PREMIRRORS for packages to your internal server (could be ftp, http or file when mounted via NFS).

But then you end up typing all the patterns for the various file types, etc.

own-mirrors does all that for you by creating a PREMIRRORS variable based on the single SOURCE_MIRROR_URL

Also, to be used as a complete cache, SOURCE_MIRROR_URL should point to the same cache directory as DL_DIR does. So I really should have said
# Provide pre-staged sources
DL_DIR = "/opt/amltd/poky/sources"
SOURCE_MIRROR_URL = "file://${DL_DIR}/"
INHERIT += "own-mirrors"

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#7 lore raw

Re: new feature? (for "DL_DIR")

THANKS! I will try it!

Quoted 43 lines · Gary Thomas
Quoted 16 lines · Gary Thomas
Quoted 15 lines · Saul Wold
Quoted 14 lines · Gary Thomas
Quoted 5 lines · Ni Qingliang

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

Just add these lines to your .conf (I put them in my ${DISTRO}.conf):
# Provide pre-staged sources
SOURCE_MIRROR_URL ?= "file:///opt/amltd/poky/sources/" INHERIT += "own-mirrors"

Simply point SOURCE_MIRROR_URL at your file cache.

Quoted 7 lines
Quoted 2 lines

You could also use PREMIRRORS in the developer's local.conf, point
PREMIRRORS for packages to your internal server (could be ftp, http or file when mounted via NFS).

But then you end up typing all the patterns for the various file types, etc.

own-mirrors does all that for you by creating a PREMIRRORS variable based on the single SOURCE_MIRROR_URL

Also, to be used as a complete cache, SOURCE_MIRROR_URL should point to the same cache directory as DL_DIR does. So I really should have said
# Provide pre-staged sources
DL_DIR = "/opt/amltd/poky/sources"
SOURCE_MIRROR_URL = "file://${DL_DIR}/"
INHERIT += "own-mirrors"

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 4 lines
Yi Qingliang
倪庆亮

Insigma
#8 lore raw

Re: new feature? (for "DL_DIR")

In reply to Ni Qingliang

thanks again, I have setup an internal package server (http), and the client can use it in poky.

but I have another problem for git svn( for the .gz .bz2 package, no problem), the source code of the packages using git/svn/hg are directories in the server, does the client can use it???

Quoted 12 lines · 倪庆亮

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

--
Yi Qingliang
倪庆亮

Insigma

Signature · 4 lines
Yi Qingliang
倪庆亮

Insigma
#9 lore raw

Re: new feature? (for "DL_DIR")

I found that: for every vcs (e.g. git) package, except a directory in "git" or "git2", there is another file "*.tar.gz" in the downloads dir.

but for my own package, e.g linux 2.6.35 for i.mx28, only the directory under "git2", I can't found the tar.gz file in downloads, why?

Quoted 28 lines · 倪庆亮

thanks again, I have setup an internal package server (http), and the client can use it in poky.

but I have another problem for git svn( for the .gz .bz2 package, no problem), the source code of the packages using git/svn/hg are directories in the server, does the client can use it???

Quoted 12 lines · 倪庆亮

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

--
Yi Qingliang
倪庆亮

Insigma

--
Yi Qingliang
倪庆亮

Insigma

Signature · 4 lines
Yi Qingliang
倪庆亮

Insigma
#10 lore raw

Re: new feature? (for "DL_DIR")

Quoted 19 lines · Ni Qingliang

I found that: for every vcs (e.g. git) package, except a directory in "git" or "git2", there is another file "*.tar.gz" in the downloads dir.

but for my own package, e.g linux 2.6.35 for i.mx28, only the directory under "git2", I can't found the tar.gz file in downloads, why?

Quoted 12 lines · 倪庆亮

thanks again, I have setup an internal package server (http), and the client can use it in poky.

but I have another problem for git svn( for the .gz .bz2 package, no problem), the source code of the packages using git/svn/hg are directories in the server, does the client can use it???

Quoted 4 lines · 倪庆亮

Do we can assign all package be downloaded from the same path?

I want setup one internal server to store the files in upstreamsources, and all developer's PC use it but not the original package address.

Set this in your .conf
BB_GENERATE_MIRROR_TARBALLS ?= "1"

When you use 'own-mirrors', you'll end up with a "downloads" directory in your build tree. This will include symbolic links to files already found in your cache, as well as any files newly downloaded during a build. You probably want to push out the new files to your cache from this downloads directory.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
Applied
#11 lore raw
In reply to [email protected]
Quoted 21 lines · On 08/21/2011 11:37 PM, [email protected] wrote:

From: Wenzong Fan<[email protected]>

Some minor updates to cronie.

The following changes since commit edd8e1e8b974eb3f0f9f66c2207aadf43612350b:
Scott Rifenbark (1):
documentation/adt-manual/adt-command.xml: general edits.

are available in the git repository at:

git://git.pokylinux.org/poky-contrib wenzong/update_cronie
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/update_cronie

Wenzong Fan (1):
cronie: Updates to cronie

  meta/recipes-extended/cronie/cronie/crond.init |    2 --
  meta/recipes-extended/cronie/cronie_1.4.8.bb   |    8 ++++++--
  2 files changed, 6 insertions(+), 4 deletions(-)
Quoted 5 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Merged into OE-Core

Thanks
Sau!