Building a RPM for pptpd 1.3.4 in CentOS 5.3 i386
Sep 07
This post is an extension from my first post of PPTP Server Installation in CentOS 5 whereby the RPM file pptpd-1.3.4-1.rhel5.1.i386.rpm is no longer available in http://poptop.sourceforge.net/yum/stable/packages/ so I decided to share how to build a RPM for pptpd 1.3.4 in CentOS 5.3 i386 distribution. This box I am going to build this RPM is based on XenServer virtual machine (VM) as below: -
CentOS 5.3 i386
kernel-xen-2.6.18-128.el5
ppp-2.4.4-2.el5
1. Download the source file pptpd-1.3.4.tar.gz from: -
http://sourceforge.net/projects/poptop/files/
2. Mount the CentOS 5.3 i386 image using the command below: -
mount /dev/xvdd /media ; cd /media/CentOS
3. Install the pre-requisite RPMs to build the RPM for pptpd 1.3.4 using the command below: -
rpm -ivh rpm-build-4.4.2.3-9.el5.i386.rpm elfutils-0.137-3.el5.i386.rpm elfutils-libs-0.137-3.el5.i386.rpm gcc-4.1.2-44.el5.i386.rpm cpp-4.1.2-44.el5.i386.rpm glibc-devel-2.5-34.i386.rpm glibc-headers-2.5-34.i386.rpm libgomp-4.3.2-7.el5.i386.rpm kernel-headers-2.6.18-128.el5.i386.rpm
4. Now, start building the RPM for pptpd 1.3.4 using the command below: -
rpmbuild -tb /root/pptpd-1.3.4.tar.gz
5. You will see a bunch of message popping out in your screen. If the RPM is successfully built, the RPM file will be located at below: -
/usr/src/redhat/RPMS/i386/pptpd-1.3.4-1.i386.rpm
6. Finally, your pptpd 1.3.4 RPM file is ready for installation. You can install it using the command below: -
rpm -ivh /usr/src/redhat/RPMS/i386/pptpd-1.3.4-1.i386.rpm
If you found these helpful, please contribute to help:
Twitter
Facebook
Flickr
RSS
Jul 05, 2010 @ 02:20:41
Thanks!
nice writeup…
Jul 05, 2010 @ 17:36:52
Thank you.