Manual Package Updates: Difference between revisions
(Updated directions for arp-scan) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Package Data Files = | |||
== arp-scan == | |||
Update the yum/pkgs/arp-scan/src/ieee-oui.txt included in the arp-scan package by: | |||
* Use the "Update OUI" button in the settings panel on the NST WUI. | |||
* Copy the updated /usr/share/arp-scan/ieee-oui.txt file from the NST system to the yum/pkgs/arp-scan/src/ieee-oui.txt location on the NST build system. | |||
* Bump the release number in yum/pkgs/arp-scan/pkginfo.xml. | |||
* Update the change log in yum/pkgs/arp-scan/template.spec. | |||
= Check Package URLs = | |||
There are many ''pkginfo.xml'' files which are associated with the RPM packages making up the NST yum repository. Each of these ''pkginfo.xml'' files will have two or more URLs. As time goes by these URLs may ''move'' and need to be updated. You can run the ''make url-check'' command from the ''yum'' directory to: | |||
* The | * Extract the URLs from each fo the ''pkginfo.xml'' files. | ||
* Run the ''curl -head'' command on each of the extracted URLs. | |||
* See '''ok''', '''skip''' or '''FAIL''' displayed on the screen next to each URL as it is checked. | |||
* Create two log files: ''url-check.log'' and ''url-check-details.log''. | |||
Here is a example of running the command: | |||
[root@taco-dev32 dev]# cd yum | |||
[root@taco-dev32 yum]# make url-check | |||
[ok] file:///root/dev/yum/pkgs/ipsc/src/ipsc-0.4.3.tar.bz2 | |||
[ok] file:///root/dev/yum/pkgs/nst-disk-speed/src/seeker.c | |||
[ok] file:///root/dev/yum/pkgs/smtpclient/src/smtpclient-1.0.0.tar.gz | |||
[ok] file:///root/dev/yum/pkgs/tcptrack/src/tcptrack-1.4.2.tar.gz | |||
... output continues as all URLs are checked ... | |||
[root@taco-dev32 yum]# | |||
If you just want to see the list of URLs with issues, you can run the following '''grep''' command on the generated log file: | |||
[root@taco-dev32 yum]# grep -v ok url-check.log | |||
[skip] git://github.com/gnumaniacs/netsniff-ng.git | |||
[root@taco-dev32 yum]# | |||
NOTE: The ''skip'' entries indicate protocols which '''curl''' is unable to handle and verification is skipped. If you would like to verify the skipped entries, you will need to do it manually. | |||
= Check Date Change Logs = | |||
Run the following command to verify that all change log dates in the spec files are good. | |||
[nst28-repo@nst yum]$ make changelog-date-check | |||
all - Changelog date(s) ok | |||
[nst28-repo@nst yum]$ |
Latest revision as of 03:42, 7 May 2024
Package Data Files
arp-scan
Update the yum/pkgs/arp-scan/src/ieee-oui.txt included in the arp-scan package by:
- Use the "Update OUI" button in the settings panel on the NST WUI.
- Copy the updated /usr/share/arp-scan/ieee-oui.txt file from the NST system to the yum/pkgs/arp-scan/src/ieee-oui.txt location on the NST build system.
- Bump the release number in yum/pkgs/arp-scan/pkginfo.xml.
- Update the change log in yum/pkgs/arp-scan/template.spec.
Check Package URLs
There are many pkginfo.xml files which are associated with the RPM packages making up the NST yum repository. Each of these pkginfo.xml files will have two or more URLs. As time goes by these URLs may move and need to be updated. You can run the make url-check command from the yum directory to:
- Extract the URLs from each fo the pkginfo.xml files.
- Run the curl -head command on each of the extracted URLs.
- See ok, skip or FAIL displayed on the screen next to each URL as it is checked.
- Create two log files: url-check.log and url-check-details.log.
Here is a example of running the command:
[root@taco-dev32 dev]# cd yum [root@taco-dev32 yum]# make url-check [ok] file:///root/dev/yum/pkgs/ipsc/src/ipsc-0.4.3.tar.bz2 [ok] file:///root/dev/yum/pkgs/nst-disk-speed/src/seeker.c [ok] file:///root/dev/yum/pkgs/smtpclient/src/smtpclient-1.0.0.tar.gz [ok] file:///root/dev/yum/pkgs/tcptrack/src/tcptrack-1.4.2.tar.gz ... output continues as all URLs are checked ... [root@taco-dev32 yum]#
If you just want to see the list of URLs with issues, you can run the following grep command on the generated log file:
[root@taco-dev32 yum]# grep -v ok url-check.log [skip] git://github.com/gnumaniacs/netsniff-ng.git [root@taco-dev32 yum]#
NOTE: The skip entries indicate protocols which curl is unable to handle and verification is skipped. If you would like to verify the skipped entries, you will need to do it manually.
Check Date Change Logs
Run the following command to verify that all change log dates in the spec files are good.
[nst28-repo@nst yum]$ make changelog-date-check all - Changelog date(s) ok [nst28-repo@nst yum]$