Date: Wed, 23 May 2001 13:07:41 -0400 (EDT) From: Joe Clarke <marcus@marcuscom.com> To: <freebsd-ports@freebsd.org> Cc: <sobomax@freebsd.org>, <jkh@freebsd.org>, <rooneg@electricjellyfish.net> Subject: Patches to pkg_info Message-ID: <20010523130009.F96799-400000@shumai.marcuscom.com>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-105066685-990637340=:96799 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: <20010523130222.A96799@shumai.marcuscom.com> Here are some patches to the current version of pkg_info that add on to Garrett's which code. When the -g option is specified with the -W option, the files MD5 checksum will also be checked. This is similar to Solaris' pkgchk command. This compliments the way the -g option works on packages, by extending the option to individual files. I have tested this on FreeBSD 4.3. > pkg_info -g -W gmake /usr/local/bin/gmake was installed by package gmake-3.79.1 Expected MD5 checksum: 0b8c0582b07a3eb8a8dd9fdd93ea71c8 MD5 checksum matches. Thanks. Joe Clarke --0-105066685-990637340=:96799 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="perform.c.patch" Content-Transfer-Encoding: BASE64 Content-ID: <20010523130220.F96799@shumai.marcuscom.com> Content-Description: Content-Disposition: ATTACHMENT; FILENAME="perform.c.patch" LS0tIHBlcmZvcm0uYy5vcmlnCVdlZCBNYXkgMjMgMTI6MTE6MjQgMjAwMQ0K KysrIHBlcmZvcm0uYwlXZWQgTWF5IDIzIDEyOjEzOjQ3IDIwMDENCkBAIC0y Niw2ICsyNiw3IEBADQogI2luY2x1ZGUgImxpYi5oIg0KICNpbmNsdWRlICJp bmZvLmgiDQogI2luY2x1ZGUgPGVyci5oPg0KKyNpbmNsdWRlIDxtZDUuaD4N CiAjaW5jbHVkZSA8c2lnbmFsLmg+DQogDQogc3RhdGljIGludCBwa2dfZG8o Y2hhciAqKTsNCkBAIC0zOTEsNiArMzkyLDEyIEBADQogCQkJICAgICAgd3At Pn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B7DQor CQkJcHJpbnRmKCJNRDUgY2hlY2tzdW0gZG9lcyBub3QgbWF0Y2ghXG4iKTsN CisJCSAgICB9DQorCQkgICAgZWxzZSB7DQorCQkJcHJpbnRmKCJNRDUgY2hl Y2tzdW0gbWF0Y2hlcy5cbiIpOw0KKwkJICAgIH0NCisJCX0NCisJICAgIH0N CiAJfQ0KICAgICB9DQogICAgIHdoaWxlICghVEFJTFFfRU1QVFkod2hpY2hf bGlzdCkpIHsNCg== --0-105066685-990637340=:96799 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="info.h.patch" Content-Transfer-Encoding: BASE64 Content-ID: <20010523130220.C96799@shumai.marcuscom.com> Content-Description: Content-Disposition: ATTACHMENT; FILENAME="info.h.patch" LS0tIGluZm8uaC5vcmlnCVN1biBNYXkgMjAgMDA6MTI6NDYgMjAwMQ0KKysr IGluZm8uaAlTdW4gTWF5IDIwIDAwOjA1OjQ2IDIwMDENCkBAIC01Myw2ICs1 Myw3IEBADQogICAgIFRBSUxRX0VOVFJZKHdoaWNoX2VudHJ5KSBuZXh0Ow0K ICAgICBjaGFyIGZpbGVbUEFUSF9NQVhdOw0KICAgICBjaGFyIHBhY2thZ2Vb UEFUSF9NQVhdOw0KKyAgICBjaGFyIG1kNVszM107DQogICAgIEJvb2xlYW4g c2tpcDsNCiB9Ow0KIFRBSUxRX0hFQUQod2hpY2hfaGVhZCwgd2hpY2hfZW50 cnkpOw0K --0-105066685-990637340=:96799 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="pkg_info.1.patch" Content-Transfer-Encoding: BASE64 Content-ID: <20010523130702.H96799@shumai.marcuscom.com> Content-Description: Content-Disposition: ATTACHMENT; FILENAME="pkg_info.1.patch" LS0tIHBrZ19pbmZvLjEub3JpZwlXZWQgTWF5IDIzIDEyOjExOjI0IDIwMDEN CisrKyBwa2dfaW5mby4xCVdlZCBNYXkgMjMgMTM6MDM6MjcgMjAwMQ0KQEAg LTEwNiwxNCArMTA2LDE5IEBADQogLk5tDQogYXV0b21hdGljYWxseSBleHBh bmRzIHNoZWxsIGdsb2IgcGF0dGVybnMgaW4gdGhlDQogLkFyIHBrZy1uYW1l ICkgLg0KLS5JdCBGbCBXDQorLkl0IEZsIFcgQXIgZmlsZW5hbWUNCiBGb3Ig dGhlIHNwZWNpZmllZA0KIC5BciBmaWxlbmFtZQ0KIGFyZ3VtZW50IHNob3cg d2hpY2ggcGFja2FnZSBpdCBiZWxvbmdzIHRvLiAgSWYgdGhlIGZpbGUgaXMg bm90IGluIHRoZQ0KIGN1cnJlbnQgZGlyZWN0b3J5LCBhbmQgZG9lcyBub3Qg aGF2ZSBhbiBhYnNvbHV0ZSBwYXRoLCB0aGVuIHRoZSANCiAuRXYgUEFUSA0K IGlzIHNlYXJjaGVkIHVzaW5nDQotLlhyIHdoaWNoIDEgLg0KKy5YciB3aGlj aCAxIC4gIA0KK1doZW4gdGhlDQorLkZsIGcNCithcmd1bWVudCBpcyBhbHNv IHNwZWNpZmllZCwgdGhlIG1kNSBjaGVja3N1bSB3aWxsIGJlIGNhbGN1bGF0 ZWQgZm9yDQorLkFyIGZpbGVuYW1lDQorYW5kIGNvbXBhcmVkIGFnYWluc3Qg dGhlIGV4cGVjdGVkIHZhbHVlLg0KIC5JdCBGbCB4DQogVHJlYXQgdGhlDQog LkFyIHBrZy1uYW1lDQo= --0-105066685-990637340=:96799-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010523130009.F96799-400000>