From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Kevin Strasser <kevin.strasser@linux.intel.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-baryon] [PATCH 1/2] proftpd: update package to 1.3.4b
Date: Thu, 06 Sep 2012 14:25:20 +0100 [thread overview]
Message-ID: <2078118.x047gOSbfx@helios> (raw)
In-Reply-To: <1344287116-7750-1-git-send-email-kevin.strasser@linux.intel.com>
On Monday 06 August 2012 14:05:15 Kevin Strasser wrote:
> The contrib directory now contains its own Makefile which is
> used during installation. It was required to pass in the DESTDIR
> variable.
>
> Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
> ---
> recipes-extended/proftpd/files/contrib.patch | 25 ++++++++++++
> recipes-extended/proftpd/proftpd_1.3.3c.bb | 53
> ------------------------- recipes-extended/proftpd/proftpd_1.3.4b.bb |
> 54 ++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 53
> deletions(-)
> create mode 100644 recipes-extended/proftpd/files/contrib.patch
> delete mode 100644 recipes-extended/proftpd/proftpd_1.3.3c.bb
> create mode 100644 recipes-extended/proftpd/proftpd_1.3.4b.bb
>
> diff --git a/recipes-extended/proftpd/files/contrib.patch
> b/recipes-extended/proftpd/files/contrib.patch new file mode 100644
> index 0000000..d97cd69
> --- /dev/null
> +++ b/recipes-extended/proftpd/files/contrib.patch
> @@ -0,0 +1,25 @@
> +DESTDIR needs to be passed through to the contrib Makefile
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
> +---
> + Makefile.in | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/Makefile.in b/Makefile.in
> +index 5b2e683..ee72fe1 100644
> +--- a/Makefile.in
> ++++ b/Makefile.in
> +@@ -120,7 +120,7 @@ install-modules: $(DESTDIR)$(libexecdir)
> $(DESTDIR)$(sysconfdir) + test -z "$(SHARED_MODULE_OBJS)" -a -z
> "$(SHARED_MODULE_DIRS)" -a -z "$(STATIC_MODULE_DIRS)" || (cd modules/ &&
> $(MAKE) install) +
> + install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
> +- cd contrib/ && $(MAKE) install-utils
> ++ cd contrib/ && $(MAKE) DESTDIR=${DESTDIR} install-utils
> + $(INSTALL_BIN) ftpcount $(DESTDIR)$(bindir)/ftpcount
> + $(INSTALL_BIN) ftpdctl $(DESTDIR)$(bindir)/ftpdctl
> + $(INSTALL_SBIN) ftpscrub $(DESTDIR)$(sbindir)/ftpscrub
> +--
> +1.7.9.5
> +
> diff --git a/recipes-extended/proftpd/proftpd_1.3.3c.bb
> b/recipes-extended/proftpd/proftpd_1.3.3c.bb deleted file mode 100644
> index 8de80fc..0000000
> --- a/recipes-extended/proftpd/proftpd_1.3.3c.bb
> +++ /dev/null
> @@ -1,53 +0,0 @@
> -DESCRIPTION = "Secure ftp daemon"
> -SECTION = "console/network"
> -
> -LICENSE = "GPLv2+"
> -LIC_FILES_CHKSUM = "file://COPYING;md5=fdedcde17b1ffd967d86c20fe0ac158a"
> -
> -PR = "r0"
> -
> -SRC_URI = "ftp://ftp.proftpd.org/distrib/source/${PN}-${PV}.tar.gz \
> - file://make.patch \
> - file://basic.conf.patch \
> - "
> -
> -SRC_URI[md5sum] = "4f2c554d6273b8145095837913ba9e5d"
> -SRC_URI[sha256sum] =
> "44be095ed063df93278928cf665ad7b9b38e2c8d0cca97fb51307ec3a390a591" -
> -EXTRA_OECONF = "ac_cv_func_setpgrp_void=yes ac_cv_func_setgrent_void=yes
> --disable-cap" -LDFLAGS += "-Llib"
> -PARALLEL_MAKE = ""
> -
> -do_configure () {
> - ./configure \
> - --disable-auth-pam \
> - --build=${BUILD_SYS} \
> - --host=${HOST_SYS} \
> - --target=${TARGET_SYS} \
> - --prefix=/usr \
> - --sysconfdir=/etc \
> - --sharedstatedir=/com \
> - --localstatedir=/var \
> - ${EXTRA_OECONF} \
> - $@;
> -}
> -
> -do_install () {
> - oe_runmake DESTDIR=${D} install
> -}
> -
> -pkg_postinst () {
> - if [ "x$D" != "x" ] ; then
> - exit 1
> - fi
> -
> - # more chown's might be needed
> - chown root:root /usr/sbin/proftpd
> -
> - # create the ftp user
> - username='ftp'
> - addgroup ${username}
> - adduser --disabled-password ${username} --ingroup ${username}
> - mkdir -p /home/${username}/pub/
> - chown -R ftp:ftp /home/${username}/pub
> -}
> diff --git a/recipes-extended/proftpd/proftpd_1.3.4b.bb
> b/recipes-extended/proftpd/proftpd_1.3.4b.bb new file mode 100644
> index 0000000..b7e201b
> --- /dev/null
> +++ b/recipes-extended/proftpd/proftpd_1.3.4b.bb
> @@ -0,0 +1,54 @@
> +DESCRIPTION = "Secure ftp daemon"
> +SECTION = "console/network"
> +
> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=fb0d1484d11915fa88a6a7702f1dc184"
> +
> +PR = "r0"
> +
> +SRC_URI = "ftp://ftp.proftpd.org/distrib/source/${PN}-${PV}.tar.gz \
> + file://make.patch \
> + file://basic.conf.patch \
> + file://contrib.patch \
> + "
> +
> +SRC_URI[md5sum] = "0871e0b93c9c3c88ca950b6d9a04aed2"
> +SRC_URI[sha256sum] =
> "9f659585cea90fc6af34a0ffae4a90e4ed37abe92dbd9b6c311f95a436c961cb" +
> +EXTRA_OECONF = "ac_cv_func_setpgrp_void=yes ac_cv_func_setgrent_void=yes
> --disable-cap" +LDFLAGS += "-Llib"
> +PARALLEL_MAKE = ""
> +
> +do_configure () {
> + ./configure \
> + --disable-auth-pam \
> + --build=${BUILD_SYS} \
> + --host=${HOST_SYS} \
> + --target=${TARGET_SYS} \
> + --prefix=/usr \
> + --sysconfdir=/etc \
> + --sharedstatedir=/com \
> + --localstatedir=/var \
> + ${EXTRA_OECONF} \
> + $@;
> +}
> +
> +do_install () {
> + oe_runmake DESTDIR=${D} install
> +}
> +
> +pkg_postinst () {
> + if [ "x$D" != "x" ] ; then
> + exit 1
> + fi
> +
> + # more chown's might be needed
> + chown root:root /usr/sbin/proftpd
> +
> + # create the ftp user
> + username='ftp'
> + addgroup ${username}
> + adduser --disabled-password ${username} --ingroup ${username}
> + mkdir -p /home/${username}/pub/
> + chown -R ftp:ftp /home/${username}/pub
> +}
Sorry for the late reply Kevin. Would you mind re-sending these two using -M
so that the changes are obvious?
Thanks,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
prev parent reply other threads:[~2012-09-06 13:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-06 21:05 [meta-baryon] [PATCH 1/2] proftpd: update package to 1.3.4b Kevin Strasser
2012-08-06 21:05 ` [meta-baryon] [PATCH 2/2] webmin: update package to 1.590 Kevin Strasser
2012-09-06 13:25 ` Paul Eggleton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2078118.x047gOSbfx@helios \
--to=paul.eggleton@linux.intel.com \
--cc=kevin.strasser@linux.intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.