checkinstallとはtar,ballからrpmパッケージやらdebパッケージが作成出来るツールみたいあー、知らなんだ。あー、それなのに、それなのに、ああー!
checkinstallを使ってrpmパッケージ作成に挑戦、checkinstallをmake後rpmパッケージ化しインストールしその後、epiconのrpmパッケージを作成、インストールする
先ずはcheckinstallのtar,ballをwget
wget http://www.asic-linux.com.mx/~izto/checkinstall/files/source/checkinstall-1.6.2.tar.gz
[root@p-4]# tar xvfz checkinstall-1.6.2.tar.gz
[root@p-4]# cd checkinstall-1.6.2
解凍後、make一発のみ・・・configureが無いのでちょっと不安
[root@p-4 checkinstall-1.6.2]# make
for file in locale/checkinstall-*.po ; do \
case ${file} in \
locale/checkinstall-template.po) ;; \
*) \
out=`echo $file | sed -s 's/po/mo/'` ; \
msgfmt -o ${out} ${file} ; \
if [ $? != 0 ] ; then \
exit 1 ; \
fi ; \
;; \
esac ; \
done
make -C installwatch
make[1]: Entering directory `/root/checkinstall-1.6.2/installwatch'
./create-localdecls
Checking truncate argument type... off_t
Checking readlinkat result type... ssize_t
Checking libc version... libc.so.6
Checking glibc subversion... gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.7.0beta7\" installwatch.c
ld -shared -o installwatch.so installwatch.o -ldl -lc
make[1]: Leaving directory `/root/checkinstall-1.6.2/installwatch'
[root@p-4 checkinstall-1.6.2]# make install
for file in locale/checkinstall-*.po ; do \
case ${file} in \
locale/checkinstall-template.po) ;; \
.
checkinstallのrpmパッケージを作成する、何も考えず質問に答えるのみ
[root@p-4 checkinstall-1.6.2]# checkinstall
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The checkinstallrc file was not found at:
/usr/local/sbin/../checkinstallrc
Assuming default values.
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]:
Preparing package documentation...OK
Please choose the packaging method you want to use.
Slackware [S], RPM [R] or Debian [D]? R
**************************************
**** RPM package creation selected ***
**************************************
This package will be built according to these values:
1 - Summary: [ CheckInstall installations tracker, version 1.6.2 ]
2 - Name: [ checkinstall ]
3 - Version: [ 1.6.2 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ i386 ]
8 - Source location: [ checkinstall-1.6.2 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ checkinstall ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
.
**********************************************************************
Done. The new package has been saved to
/usr/src/redhat/RPMS/i386/checkinstall-1.6.2-1.i386.rpm
You can install it in your system anytime using:
rpm -i checkinstall-1.6.2-1.i386.rpm
**********************************************************************
/usr/src/redhat/RPMS/i386/checkinstall-1.6.2-1.i386.rpmへrpmパッケージが作成されたという事でrpmコマンドでインストールせよとの指示に従う
root@p-4 checkinstall-1.6.2]# rpm -Uvh /usr/src/redhat/RPMS/i386/checkinstall-1.6.2-1.i386.rpm
Preparing... ########################################### [100%]
1:checkinstall ########################################### [100%]
[root@p-4 checkinstall-1.6.2]#
次にepiconのrpmパッケージにチャレンジ、tar,ballを解凍make後checkinstallコマンドのみ
[root@p-4 ~]# tar xvfz /usr/src/epicon-4.8.tar.gz
epicon-4.8/
epicon-4.8/install-sh
epicon-4.8/INSTALL
epicon-4.8/epicon.h
.
[root@p-4 ~]# cd epicon-4.8/
[root@p-4 epicon-4.8]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
.
[root@p-4 epicon-4.8]# make
make all-am
make[1]: Entering directory `/root/epicon-4.8'
.
make[1]: Leaving directory `/root/epicon-4.8'
[root@p-4 epicon-4.8]# checkinstall
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The checkinstallrc file was not found at:
/usr/local/sbin/../checkinstallrc
Assuming default values.
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]:
**********************************************************************
Done. The new package has been saved to
/usr/src/redhat/RPMS/i386/epicon-4.8-1.i386.rpm
You can install it in your system anytime using:
rpm -i epicon-4.8-1.i386.rpm
**********************************************************************
[root@p-4 epicon-4.8]# rpm -Uvh /usr/src/redhat/RPMS/i386/epicon-4.8-1.i386.rpm
Preparing... ########################################### [100%]
1:epicon ########################################### [100%]
[root@p-4 ~]# rpm -qa|grep epicon
epicon-4.8-1
おーと、epiconがrpmパッケージ化されてインストールされましたとさ
pepoと