documents:freebsd:freebsd-0023
目次
FreeBSDのportdowngradeで古いバージョンを適用する2016年版
2016/08/15
現在のportdowngradeはCVSサーバを使いません。subversionでportsの履歴を一覧し、どのリビジョンを使うか指定する事で、目的のリビジョンがチェックアウトされます。
あとはチェックアウトされたディレクトリに移動してmakeするだけ。
fetchmailをダウングレードしてみる
現在のバージョン確認
現在のfetchmailバージョンはこの通り。
$ pkg info|grep fetchmail fetchmail-6.3.26_4 Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR $
portdowngrade でリビジョンを確認
‟Choose a revision”の revision とは、r419379 や r417187 の事。 目的のリビジョンを r417187 とすれば、メッセージにある通り、‟portdowngrade mail/fetchmail r417187”を実行することになる。
$ portdowngrade mail/fetchmail Choose a revision from this list and run /usr/local/sbin/portdowngrade mail/fetchmail revision ------------------------------------------------------------------------ r419379 | kevlo | 2016-07-31 23:16:55 +0900 (2016/07/31 (日)) | 6 lines Fix pkg-plist when X11 option is on. PR: 210757 Submitted by: Ting-Wei Lan <lantw44@gmail.com> Approved by: Corey Halpin <chalpin@cs.wisc.edu> (maintainer) ------------------------------------------------------------------------ r417187 | brnrd | 2016-06-21 15:14:41 +0900 (2016/06/21 (火)) | 13 lines mail/fetchmail: Fix build without SSLv3 - Fix build with OpenSSL 1.1 and LibreSSL - Stop using pkg-install/pkg-deinstall scripts - Use pkg-plist keywords - Use GSSAPI ports framework - Change X11, POP2 options to use options framework PR: 210130 Submitted by: freebsd-ports@charlieroot.de Reviewed by: Corey Halpin <chalpin@cs.wisc.edu> (maintainer) Approved by: Corey Halpin <chalpin@cs.wisc.edu> (maintainer) ------------------------------------------------------------------------ r415811 | mandree | 2016-05-25 05:32:55 +0900 (2016/05/25 (水)) | 15 lines Disable SSLv2, to fix new/from-ports OpenSSL builds. Newer and ports-based builds define the SSLv2_client_method() in the headers unless OPENSSL_NO_SSL2, or, depending on version, OPENSSL_NO_SSL2_METHOD is defined, however newer OpenSSL versions in FreeBSD no longer provide the implementation in the library. Preload the autoconf (configure) cache to pretend SSLv2_client_method() were universally _un_available, effectively disabling SSLv2 altogether. PR: 209596 Submitted by: peter@ [first proposal], mandree@ [committed proposal] Reported by: peter@ Approved by: chalpin@cs.wisc.edu (maintainer) …中略… ------------------------------------------------------------------------ r4170 | pst | 1996-10-27 16:00:01 +0900 (1996/10/27 (日)) | 2 lines The author changed fetchmail distribution file ------------------------------------------------------------------------ r4164 | max | 1996-10-27 07:11:40 +0900 (1996/10/27 (日)) | 5 lines Upgrade, 1.8 -> 1.9. Submitted by: Ville Eerola <ve@sci.fi> (Closing PR #1895.) ------------------------------------------------------------------------ r3977 | max | 1996-10-15 13:52:41 +0900 (1996/10/15 (火)) | 2 lines Fetchmail - batch mail retrieval client with pop2/pop3/apop/kpop/imap support. ------------------------------------------------------------------------ Choose a revision from the above list and run /usr/local/sbin/portdowngrade mail/fetchmail revision $
目的のリビジョンをチェックアウトする
コマンドを実行したカレントディレクトリに指定リビジョンがチェックアウトされるので、このディレクトリに移動し、make を実行する。
$ portdowngrade mail/fetchmail r417187 A fetchmail/files A fetchmail/Makefile A fetchmail/files/patch-fetchmail.c A fetchmail/files/patch-socket.c A fetchmail/files/fetchmail.in A fetchmail/files/fetchmailrc.sample A fetchmail/files/pkg-message.in A fetchmail/files/fetchmailconf.in A fetchmail/pkg-plist A fetchmail/pkg-descr A fetchmail/distinfo リビジョン 417187 をチェックアウトしました。 You should be done-- now cd into fetchmail and you can run # make deinstall install clean Please note that portdowngrade no longer modifies the ports tree; the checked out port is at /home/k896951/wk/fetchmail $ su Password: root@amanda:/home/k896951/wk # cd fetchmail root@amanda:/home/k896951/wk/fetchmail # make deinstall install clean ===> Deinstalling for fetchmail ===> Deinstalling fetchmail-6.3.26_4 Updating database digests format: 100% Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: fetchmail-6.3.26_4 Number of packages to be removed: 1 …中略… ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) ===> Installing for fetchmail-6.3.26_2 ===> Checking if fetchmail already installed ===> Registering installation for fetchmail-6.3.26_2 Installing fetchmail-6.3.26_2... ===> Creating groups. Using existing group 'fetchmail'. ===> Creating users Using existing user 'fetchmail'. ****************************************************** For pointers how to configure fetchmail in daemon mode please consult /usr/local/etc/rc.d/fetchmail. ****************************************************** ===> Cleaning for fetchmail-6.3.26_2 root@amanda:/home/k896951/wk/fetchmail #
無事(?)、fetchmail-6.3.26_4 から fetchmail-6.3.26_2 へダウングレードされました。
documents/freebsd/freebsd-0023.txt · 最終更新: 2024/11/01 16:25 by k896951