root@xhl:~# cd /home/httpd/cgi-bin/naisyo/plugins/ root@xhl:/home/httpd/cgi-bin/naisyo/plugins# wget http://labs.m-logic.jp/plugins/posttweet/PostTweet-1.1.7.tar.gz --2014-11-01 08:12:21-- http://labs.m-logic.jp/plugins/posttweet/PostTweet-1.1.7.tar.gz Resolving labs.m-logic.jp (labs.m-logic.jp)... 49.212.13.46 Connecting to labs.m-logic.jp (labs.m-logic.jp)|49.212.13.46|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 374431 (366K) [application/octet-stream] Saving to: `PostTweet-1.1.7.tar.gz' 100%[======================================>] 374,431 2.07M/s in 0.2s 2014-11-01 08:12:22 (2.07 MB/s) - `PostTweet-1.1.7.tar.gz' saved [374431/374431] root@xhl:/home/httpd/cgi-bin/naisyo/plugins#
root@xhl:/home/httpd/cgi-bin/naisyo/plugins# tar ztvf PostTweet-1.1.7.tar.gz drwxrwxrwx 0/0 0 2014-04-23 16:40 PostTweet/ drwxrwxrwx 0/0 0 2014-04-23 16:40 PostTweet/docs/ -rwxrwxrwx 0/0 7261 2013-10-13 22:42 PostTweet/docs/info1.png -rwxrwxrwx 0/0 7143 2013-10-13 22:42 PostTweet/docs/info2.png -rwxrwxrwx 0/0 3728 2013-10-13 22:42 PostTweet/docs/moduleerror.png -rwxrwxrwx 0/0 1143 2013-10-13 22:42 PostTweet/docs/mtdocs.css -rwxrwxrwx 0/0 29945 2014-04-23 16:33 PostTweet/docs/posttweet.html : :PostTweetプラグイン ドキュメント にあるディレクトリ構成にはなっていない。
root@xhl:/home/httpd/cgi-bin/naisyo/plugins# tar zxvf PostTweet-1.1.7.tar.gz PostTweet/ PostTweet/docs/ PostTweet/docs/info1.png PostTweet/docs/info2.png PostTweet/docs/moduleerror.png PostTweet/docs/mtdocs.css PostTweet/docs/posttweet.html PostTweet/docs/preview.png PostTweet/docs/setting1.png : : root@xhl:/home/httpd/cgi-bin/naisyo/plugins# mv PostTweet PostTweet_1.1.7 root@xhl:/home/httpd/cgi-bin/naisyo/plugins# ls PostTweet_1.1.7/plugins/ PostTweet root@xhl:/home/httpd/cgi-bin/naisyo/plugins# ls PostTweet_1.1.7/plugins/PostTweet/ extlib lib posttweet.pl tmpl root@xhl:/home/httpd/cgi-bin/naisyo/plugins# mv PostTweet_1.1.7/plugins/PostTweet . root@xhl:/home/httpd/cgi-bin/naisyo/plugins#
root@xhl:~# apt-get install dh-make-perl Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apt-file autopoint binutils build-essential bzip2 ca-certificates cpp cpp-4.6 curl debhelper dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6 gcc-4.6-base gettext gettext-base git git-man html2text intltool-debian iso-codes libalgorithm-c3-perl libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libapt-pkg-perl libarray-unique-perl libasprintf0c2 libc-dev-bin libc6-dev libclass-accessor-chained-perl libclass-accessor-perl libclass-c3-perl libclass-c3-xs-perl libconfig-file-perl libcroco3 libcurl3 libcurl3-gnutls libdata-optlist-perl libdata-section-perl libdpkg-perl libemail-address-perl libemail-date-format-perl libencode-locale-perl libenv-sanctify-perl liberror-perl libexporter-lite-perl libffi5 libfile-chdir-perl libfile-fcntllock-perl libfile-listing-perl libfile-which-perl libfont-afm-perl libgettextpo0 libglib2.0-0 libglib2.0-data libgmp10 libgomp1 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhttp-server-simple-perl libio-socket-ip-perl libio-socket-ssl-perl libio-string-perl libio-stringy-perl liblist-moreutils-perl liblwp-mediatypes-perl liblwp-protocol-https-perl libmail-sendmail-perl libmailtools-perl libmodule-depends-perl libmpc2 libmpfr4 libmro-compat-perl libnet-http-perl libnet-ssleay-perl libparams-util-perl libparse-debcontrol-perl libparse-debianchangelog-perl libregexp-assemble-perl librtmp0 libsocket-perl libsoftware-license-perl libssh2-1 libstdc++6-4.6-dev libsub-exporter-perl libsub-install-perl libsub-name-perl libsys-hostname-long-perl libtext-template-perl libtie-ixhash-perl libtimedate-perl libunistring0 liburi-perl libwww-mechanize-perl libwww-perl libwww-robotrules-perl libxdelta2 libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl libxml2 libyaml-libyaml-perl libyaml-perl linux-libc-dev lsb-release make manpages-dev patch pbzip2 po-debconf pristine-tar python python-apt python-apt-common python-minimal python2.7 python2.7-minimal sgml-base shared-mime-info ucf xdelta xml-core Suggested packages: binutils-doc bzip2-doc cpp-doc gcc-4.6-locales dh-make debian-keyring gcc-4.6-doc libstdc++6-4.6-dbg gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc libmudflap0-4.6-dev libgcc1-dbg libgomp1-dbg libquadmath-dbg libmudflap0-dbg binutils-gold gettext-doc git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk gitweb isoquery glibc-doc libdata-dump-perl libcrypt-ssleay-perl libstdc++6-4.6-doc libauthen-ntlm-perl libyaml-shell-perl lsb make-doc ed diffutils-doc libmail-box-perl python-doc python-tk python-apt-dbg python-gtk2 python-vte python-apt-doc python2.7-doc binfmt-support sgml-base-doc The following NEW packages will be installed: apt-file autopoint binutils build-essential bzip2 ca-certificates cpp cpp-4.6 curl debhelper dh-make-perl dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6 gcc-4.6-base gettext gettext-base git git-man html2text intltool-debian iso-codes libalgorithm-c3-perl libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libapt-pkg-perl libarray-unique-perl libasprintf0c2 libc-dev-bin libc6-dev libclass-accessor-chained-perl libclass-accessor-perl libclass-c3-perl libclass-c3-xs-perl libconfig-file-perl libcroco3 libcurl3 libcurl3-gnutls libdata-optlist-perl libdata-section-perl libdpkg-perl libemail-address-perl libemail-date-format-perl libencode-locale-perl libenv-sanctify-perl liberror-perl libexporter-lite-perl libffi5 libfile-chdir-perl libfile-fcntllock-perl libfile-listing-perl libfile-which-perl libfont-afm-perl libgettextpo0 libglib2.0-0 libglib2.0-data libgmp10 libgomp1 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhttp-server-simple-perl libio-socket-ip-perl libio-socket-ssl-perl libio-string-perl libio-stringy-perl liblist-moreutils-perl liblwp-mediatypes-perl liblwp-protocol-https-perl libmail-sendmail-perl libmailtools-perl libmodule-depends-perl libmpc2 libmpfr4 libmro-compat-perl libnet-http-perl libnet-ssleay-perl libparams-util-perl libparse-debcontrol-perl libparse-debianchangelog-perl libregexp-assemble-perl librtmp0 libsocket-perl libsoftware-license-perl libssh2-1 libstdc++6-4.6-dev libsub-exporter-perl libsub-install-perl libsub-name-perl libsys-hostname-long-perl libtext-template-perl libtie-ixhash-perl libtimedate-perl libunistring0 liburi-perl libwww-mechanize-perl libwww-perl libwww-robotrules-perl libxdelta2 libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl libxml2 libyaml-libyaml-perl libyaml-perl linux-libc-dev lsb-release make manpages-dev patch pbzip2 po-debconf pristine-tar python python-apt python-apt-common python-minimal python2.7 python2.7-minimal sgml-base shared-mime-info ucf xdelta xml-core 0 upgraded, 138 newly installed, 0 to remove and 0 not upgraded. Need to get 58.2 MB of archives. After this operation, 164 MB of additional disk space will be used. Do you want to continue [Y/n]?相変わらず大量のパッケージが必要。
Do you want to continue [Y/n]? y Get:1 http://ftp.jp.debian.org/debian/ wheezy/main libasprintf0c2 armel 0.18.1.1-9 [26.4 kB] Get:2 http://ftp.jp.debian.org/debian/ wheezy/main libxml2 armel 2.8.0+dfsg1-7+wheezy1 [825 kB] Get:3 http://ftp.jp.debian.org/debian/ wheezy/main libffi5 armel 3.0.10-3 [22.8 kB] Get:4 http://ftp.jp.debian.org/debian/ wheezy/main libglib2.0-0 armel 2.33.12+really2.32.4-5 [1694 kB] : :
root@xhl:~# dh-make-perl --build --cpan IO::Socket::SSL CPAN.pm requires configuration, but most of it can be done automatically. If you answer 'no' below, you will enter an interactive dialog for each configuration option instead. Would you like to configure as much as possible automatically? [yes] : : dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package `libio-socket-ssl-perl' in `../libio-socket-ssl-perl_2.002-1_all.deb'. make: Leaving directory `/root/IO-Socket-SSL-2.002' --- Done Switched to a new branch 'master' pristine-tar: committed libio-socket-ssl-perl_2.002.orig.tar.gz.delta to branch pristine-tar Reading package lists... Done Building dependency tree Reading state information... Done ********** WARNING: a package named 'libio-socket-ssl-perl' is already available in APT repositories Maintainer: Debian Perl GroupDescription: Perl module implementing object oriented interface to SSL sockets root@xhl:~#
root@xhl:~# dh-make-perl --build --cpan Digest::SHA1 Going to read '/root/.cpan/Metadata' Database was generated on Fri, 31 Oct 2014 17:53:25 GMT CPAN: Time::HiRes loaded ok (v1.972101) Fetching with LWP: http://mirror.jre655.com/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz CPAN: Digest::SHA loaded ok (v5.61) Fetching with LWP: http://mirror.jre655.com/CPAN/authors/id/G/GA/GAAS/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz ok Digest-SHA1-2.13/ Digest-SHA1-2.13/Changes Digest-SHA1-2.13/fip180-1.gif : : dh_builddeb dpkg-deb: building package `libdigest-sha1-perl' in `../libdigest-sha1-perl_2.13-1_armel.deb'. make: Leaving directory `/root/Digest-SHA1-2.13' --- Done Switched to a new branch 'master' pristine-tar: committed libdigest-sha1-perl_2.13.orig.tar.gz.delta to branch pristine-tar Reading package lists... Done Building dependency tree Reading state information... Done root@xhl:~#
root@xhl:~# ls *.deb libdigest-sha1-perl_2.13-1_armel.deb libio-socket-ssl-perl_2.002-1_all.deb root@xhl:~# dpkg -i *.deb Selecting previously unselected package libdigest-sha1-perl. (Reading database ... 25819 files and directories currently installed.) Unpacking libdigest-sha1-perl (from libdigest-sha1-perl_2.13-1_armel.deb) ... Preparing to replace libio-socket-ssl-perl 1.76-2 (using libio-socket-ssl-perl_2.002-1_all.deb) ... Unpacking replacement libio-socket-ssl-perl ... Setting up libdigest-sha1-perl (2.13-1) ... Setting up libio-socket-ssl-perl (2.002-1) ... Processing triggers for man-db ... root@xhl:~#これでいいはず
念のため、OAuthによる認証をやり直し。
既存の記事の編集画面を開いて、 「再投稿」で確認する。
OK!
|
← Movable Type のインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ローカルバックアップ |
Copyright (C) 2003-2014 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市