Skip to contentSkip to conversation

libfile-fnmatch-perl: New recipe

PATCH In review Tom Rini 2 participants 9 messages Jun 11, 2017 – Jun 12, 2017

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/2 libfile-fnmatch-perl: New recipe

File::FnMatch::fnmatch() provides simple, shell-like pattern matching.

Though considerably less powerful than regular expressions, shell patterns are nonetheless useful and familiar to a large audience of end-users.

---
 .../perl/libfile-fnmatch-perl_0.02.bb              | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb
meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb new file +22 -0
new file mode 100644
index 000000000000..035fe9f654e9
@@ -0,0 +1,22 @@
+SUMMARY = "Perl module that provides simple filename and pathname matching"
+DESCRIPTION = "File::FnMatch::fnmatch() provides simple, shell-like pattern \
+matching. \
+Though considerably less powerful than regular expressions, shell patterns \
+are nonetheless useful and familiar to a large audience of end-users."
+
+HOMEPAGE = "http://search.cpan.org/dist/File-FnMatch/"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-1.0+"
+
+LIC_FILES_CHKSUM = "file://README;beginline=34;endline=37;md5=54fdfac62963b7cece5583ab38f2cf0d"
+
+SRC_URI = "https://cpan.metacpan.org/authors/id/M/MJ/MJP/File-FnMatch-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "22f77c20d0fb5af01a3165e2df2fe34c"
+SRC_URI[sha256sum] = "962454b8e86bea8b132bf8af35757d0c6a8f5d599015bd6a5d68cb7ae7a9e916"
+
+S = "${WORKDIR}/File-FnMatch-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/2 debsums: New recipe

A tool for verification of installed package files against MD5 checksums debsums can verify the integrity of installed package files against MD5 checksums installed by the package, or generated from a .deb archive.

---
 meta-oe/recipes-support/debsums/debsums_2.2.2.bb | 53 ++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 meta-oe/recipes-support/debsums/debsums_2.2.2.bb
meta-oe/recipes-support/debsums/debsums_2.2.2.bb new file +53 -0
new file mode 100644
index 000000000000..9713ae22784e
@@ -0,0 +1,53 @@
+SUMMARY = "Miscellaneous utilities specific to Debian"
+DESCRIPTION = "A tool for verification of installed package files against \
+MD5 checksums debsums can verify the integrity of installed package files \
+against MD5 checksums installed by the package, or generated from a .deb \
+archive."
+
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://debian/copyright;md5=770d751553e6559e9eaefd2e11ccf7e9"
+
+SUMMARY_${PN}-cron = "Cron scripts to control automatic prelinking"
+DESCRIPTION_${PN}-cron = "Cron scripts to control automatic checking."
+FILES_${PN}-cron = "${sysconfdir}/cron.*"
+
+PACKAGES =+ "${PN}-cron"
+
+SRC_URI = "http://snapshot.debian.org/archive/debian/20170530T212108Z/pool/main/d/debsums/debsums_2.2.2.tar.xz"
+# the package is taken from snapshots.debian.org; that source is static and goes stale
+# so we check the latest upstream from a directory that does get updated
+UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/"
+
+SRC_URI[md5sum] = "82b0710855a7e5212d4358163a269e79"
+SRC_URI[sha256sum] = "aa61896f93a6bbfe0161c21dcd67529ae8e1ec8c3ccf244523c52c4ad8253d97"
+
+RDEPENDS_${PN} = "dpkg dpkg-perl libfile-fnmatch-perl perl \
+                  perl-module-constant perl-module-digest-md5 \
+                  perl-module-errno perl-module-fcntl \
+                  perl-module-file-basename perl-module-file-copy \
+                  perl-module-file-find perl-module-file-glob \
+                  perl-module-file-path perl-module-file-spec \
+                  perl-module-file-temp perl-module-getopt-long \
+                  perl-module-posix"
+
+do_install() {
+	install -d ${D}/${sysconfdir}/cron.daily ${D}/${sysconfdir}/cron.weekly
+	install -d ${D}/${sysconfdir}/cron.monthly ${D}${sbindir} ${D}${bindir}
+	install -d ${D}${mandir}/man1 ${D}${mandir}/man8
+	install -m 0755 debsums ${D}${bindir}/
+	install -m 0755 rdebsums ${D}${bindir}/
+	install -m 0755 debsums_init ${D}${sbindir}
+	install -m 0644 man/debsums.1 ${D}${mandir}/man1/
+	install -m 0644 man/rdebsums.1 ${D}${mandir}/man1/
+	install -m 0644 man/debsums_init.8 ${D}${mandir}/man8/
+	install -m 0644 debian/cron.daily \
+		${D}/${sysconfdir}/cron.daily/debsums
+	install -m 0644 debian/cron.weekly \
+		${D}/${sysconfdir}/cron.weekly/debsums
+	install -m 0644 debian/cron.monthly \
+		${D}/${sysconfdir}/cron.monthly/debsums
+
+	# Must exist, defaults to empty.
+	touch ${D}/${sysconfdir}/debsums-ignore
+}
Signature · 1 line
1.9.1
#2 lore raw

Re: [meta-oe][PATCH 2/2] debsums: New recipe

Quoted 4 lines · Tom Rini

A tool for verification of installed package files against MD5 checksums debsums can verify the integrity of installed package files against MD5 checksums installed by the package, or generated from a .deb archive.

order of directives seems a bit displaced, may be running meta-openembedded/contrib/oe-stylize.py
will be good.

Quoted 73 lines
---
 meta-oe/recipes-support/debsums/debsums_2.2.2.bb | 53 ++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 meta-oe/recipes-support/debsums/debsums_2.2.2.bb
meta-oe/recipes-support/debsums/debsums_2.2.2.bb new file +53 -1
new file mode 100644
index 000000000000..9713ae22784e
@@ -0,0 +1,53 @@
+SUMMARY = "Miscellaneous utilities specific to Debian"
+DESCRIPTION = "A tool for verification of installed package files against \
+MD5 checksums debsums can verify the integrity of installed package files \
+against MD5 checksums installed by the package, or generated from a .deb \
+archive."
+
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://debian/copyright;md5=770d751553e6559e9eaefd2e11ccf7e9"
+
+SUMMARY_${PN}-cron = "Cron scripts to control automatic prelinking"
+DESCRIPTION_${PN}-cron = "Cron scripts to control automatic checking."
+FILES_${PN}-cron = "${sysconfdir}/cron.*"
+
+PACKAGES =+ "${PN}-cron"
+
+SRC_URI = "http://snapshot.debian.org/archive/debian/20170530T212108Z/pool/main/d/debsums/debsums_2.2.2.tar.xz"
+# the package is taken from snapshots.debian.org; that source is static and goes stale
+# so we check the latest upstream from a directory that does get updated
+UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/"
+
+SRC_URI[md5sum] = "82b0710855a7e5212d4358163a269e79"
+SRC_URI[sha256sum] = "aa61896f93a6bbfe0161c21dcd67529ae8e1ec8c3ccf244523c52c4ad8253d97"
+
+RDEPENDS_${PN} = "dpkg dpkg-perl libfile-fnmatch-perl perl \
+                  perl-module-constant perl-module-digest-md5 \
+                  perl-module-errno perl-module-fcntl \
+                  perl-module-file-basename perl-module-file-copy \
+                  perl-module-file-find perl-module-file-glob \
+                  perl-module-file-path perl-module-file-spec \
+                  perl-module-file-temp perl-module-getopt-long \
+                  perl-module-posix"
+
+do_install() {
+       install -d ${D}/${sysconfdir}/cron.daily ${D}/${sysconfdir}/cron.weekly
+       install -d ${D}/${sysconfdir}/cron.monthly ${D}${sbindir} ${D}${bindir}
+       install -d ${D}${mandir}/man1 ${D}${mandir}/man8
+       install -m 0755 debsums ${D}${bindir}/
+       install -m 0755 rdebsums ${D}${bindir}/
+       install -m 0755 debsums_init ${D}${sbindir}
+       install -m 0644 man/debsums.1 ${D}${mandir}/man1/
+       install -m 0644 man/rdebsums.1 ${D}${mandir}/man1/
+       install -m 0644 man/debsums_init.8 ${D}${mandir}/man8/
+       install -m 0644 debian/cron.daily \
+               ${D}/${sysconfdir}/cron.daily/debsums
+       install -m 0644 debian/cron.weekly \
+               ${D}/${sysconfdir}/cron.weekly/debsums
+       install -m 0644 debian/cron.monthly \
+               ${D}/${sysconfdir}/cron.monthly/debsums
+
+       # Must exist, defaults to empty.
+       touch ${D}/${sysconfdir}/debsums-ignore
+}
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#3 lore raw

Re: [meta-oe][PATCH 2/2] debsums: New recipe

Quoted 8 lines · Khem Raj
Quoted 3 lines · Tom Rini

A tool for verification of installed package files against MD5 checksums debsums can verify the integrity of installed package files against MD5 checksums installed by the package, or generated from a .deb archive.

order of directives seems a bit displaced, may be running meta-openembedded/contrib/oe-stylize.py
will be good.

I'm not sure about that, I copied the order here from prelink_git.bb in oe-core. Unless you're referring to something outside of the -cron part? Thanks!

Signature · 1 line
Tom
#4 lore raw

Re: [meta-oe][PATCH 2/2] debsums: New recipe

Quoted 7 lines · Tom Rini
Quoted 3 lines

order of directives seems a bit displaced, may be running meta-openembedded/contrib/oe-stylize.py
will be good.

I'm not sure about that, I copied the order here from prelink_git.bb in oe-core. Unless you're referring to something outside of the -cron part? Thanks!

prelink_git.bb might not be a perfect template for new recipes too. Since this patch is adding a new recipe, I think its probably good to have known structure for it. I am thinking PACKAGES and FILES variables should be after do_install

author
#5 lore raw

Re: [meta-oe][PATCH 2/2] debsums: New recipe

Quoted 5 lines · Khem Raj
Quoted 4 lines · Tom Rini
Quoted 3 lines

order of directives seems a bit displaced, may be running meta-openembedded/contrib/oe-stylize.py
will be good.

Quoted 8 lines
Quoted 3 lines

I'm not sure about that, I copied the order here from prelink_git.bb in oe-core. Unless you're referring to something outside of the -cron part? Thanks!

prelink_git.bb might not be a perfect template for new recipes too. Since this patch is adding a new recipe, I think its probably good to have known structure for it. I am thinking PACKAGES and FILES variables should be after do_install

But with the rest up to still?

Signature · 1 line
Tom
author
#6 lore raw

PATCH v2 2/2 debsums: New recipe

In reply to Tom Rini

A tool for verification of installed package files against MD5 checksums debsums can verify the integrity of installed package files against MD5 checksums installed by the package, or generated from a .deb archive.

---
Changes in v2:
- Run oe-stylize.py over, check results and update. Reword the -cron SUMMARY and DESCRIPTION.

---
 meta-oe/recipes-support/debsums/debsums_2.2.2.bb | 52 ++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 meta-oe/recipes-support/debsums/debsums_2.2.2.bb
meta-oe/recipes-support/debsums/debsums_2.2.2.bb new file +52 -0
new file mode 100644
index 000000000000..41ebf87b2d98
@@ -0,0 +1,52 @@
+SUMMARY = "Miscellaneous utilities specific to Debian"
+SUMMARY_${PN}-cron = "Cron scripts to control automatic debsum checking"
+DESCRIPTION = "A tool for verification of installed package files against \
+MD5 checksums debsums can verify the integrity of installed package files \
+against MD5 checksums installed by the package, or generated from a .deb \
+archive."
+DESCRIPTION_${PN}-cron = "Cron scripts to control automatic system integrity \
+checking via debsums."
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://debian/copyright;md5=770d751553e6559e9eaefd2e11ccf7e9"
+
+SRC_URI = "http://snapshot.debian.org/archive/debian/20170530T212108Z/pool/main/d/debsums/debsums_2.2.2.tar.xz"
+SRC_URI[md5sum] = "82b0710855a7e5212d4358163a269e79"
+SRC_URI[sha256sum] = "aa61896f93a6bbfe0161c21dcd67529ae8e1ec8c3ccf244523c52c4ad8253d97"
+
+# the package is taken from snapshots.debian.org; that source is static and goes stale
+# so we check the latest upstream from a directory that does get updated
+UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/"
+
+do_install() {
+        install -d ${D}/${sysconfdir}/cron.daily ${D}/${sysconfdir}/cron.weekly
+        install -d ${D}/${sysconfdir}/cron.monthly ${D}${sbindir} ${D}${bindir}
+        install -d ${D}${mandir}/man1 ${D}${mandir}/man8
+        install -m 0755 debsums ${D}${bindir}/
+        install -m 0755 rdebsums ${D}${bindir}/
+        install -m 0755 debsums_init ${D}${sbindir}
+        install -m 0644 man/debsums.1 ${D}${mandir}/man1/
+        install -m 0644 man/rdebsums.1 ${D}${mandir}/man1/
+        install -m 0644 man/debsums_init.8 ${D}${mandir}/man8/
+        install -m 0644 debian/cron.daily \
+                ${D}/${sysconfdir}/cron.daily/debsums
+        install -m 0644 debian/cron.weekly \
+                ${D}/${sysconfdir}/cron.weekly/debsums
+        install -m 0644 debian/cron.monthly \
+                ${D}/${sysconfdir}/cron.monthly/debsums
+        # Must exist, defaults to empty.
+        touch ${D}/${sysconfdir}/debsums-ignore
+}
+
+PACKAGES =+ "${PN}-cron"
+
+RDEPENDS_${PN} = "dpkg dpkg-perl libfile-fnmatch-perl perl \
+                  perl-module-constant perl-module-digest-md5 \
+                  perl-module-errno perl-module-fcntl \
+                  perl-module-file-basename perl-module-file-copy \
+                  perl-module-file-find perl-module-file-glob \
+                  perl-module-file-path perl-module-file-spec \
+                  perl-module-file-temp perl-module-getopt-long \
+                  perl-module-posix"
+
+FILES_${PN}-cron = "${sysconfdir}/cron.*"
Signature · 1 line
1.9.1
#7 lore raw
In reply to Tom Rini

meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb

Quoted 12 lines · Tom Rini

File::FnMatch::fnmatch() provides simple, shell-like pattern matching.

Though considerably less powerful than regular expressions, shell patterns are nonetheless useful and familiar to a large audience of end-users.

---
 .../perl/libfile-fnmatch-perl_0.02.bb              | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb
meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb +0 -0

may be meta-perl is better suited for this

Quoted 35 lines

new file mode 100644
index 000000000000..035fe9f654e9

meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb new file +22 -1
@@ -0,0 +1,22 @@
+SUMMARY = "Perl module that provides simple filename and pathname matching"
+DESCRIPTION = "File::FnMatch::fnmatch() provides simple, shell-like pattern \
+matching. \
+Though considerably less powerful than regular expressions, shell patterns \
+are nonetheless useful and familiar to a large audience of end-users."
+
+HOMEPAGE = "http://search.cpan.org/dist/File-FnMatch/"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-1.0+"
+
+LIC_FILES_CHKSUM = "file://README;beginline=34;endline=37;md5=54fdfac62963b7cece5583ab38f2cf0d"
+
+SRC_URI = "https://cpan.metacpan.org/authors/id/M/MJ/MJP/File-FnMatch-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "22f77c20d0fb5af01a3165e2df2fe34c"
+SRC_URI[sha256sum] = "962454b8e86bea8b132bf8af35757d0c6a8f5d599015bd6a5d68cb7ae7a9e916"
+
+S = "${WORKDIR}/File-FnMatch-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#8 lore raw
Quoted 12 lines · Khem Raj
Quoted 11 lines · Tom Rini

File::FnMatch::fnmatch() provides simple, shell-like pattern matching.

Though considerably less powerful than regular expressions, shell patterns are nonetheless useful and familiar to a large audience of end-users.

---
 .../perl/libfile-fnmatch-perl_0.02.bb              | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb
Quoted 3 lines

meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb

Quoted 1 line
meta-oe/recipes-extended/perl/libfile-fnmatch-perl_0.02.bb +0 -0

may be meta-perl is better suited for this

I only hesitate because I don't think debsums then belongs in meta-perl. I took the existing example of a few other libfoo-perl recipes as being appropriate for here. Thanks!

Signature · 1 line
Tom