Build RPM From RPM Source
Tagged with: command, filler, Linux, package, rpm, rpmbuild, source
Sunday, September 21st, 2008 11:53 PM
Build a rpm package from a rpm source
rpmbuild --rebuild package_name.src.rpm
Build a rpm package from a rpm source
rpmbuild --rebuild package_name.src.rpm
Use this command to create a new brach in a git Repository
git branch NameOfNewBranch
Initialize a New Project in Git…
git init
git add .
git commit
#Add a file
git add file.php
git status
git commit
[tags]git,command,source,control[/tags]
This script will package your SVN code to a tar.gz file. Just give the name of the project as the first argument. Like this…
perl packager.pl jus5
#!/usr/bin/perl
#Package a Sourceforge project from its SVN source.
die("Please provide the name of the project as the argument") unless($ARGV[0]);
$project=$ARGV[0];
#$project='jus5';
`svn checkout https://$project.svn.sourceforge.net/svnroot/$project`;
`find $project/ -name .svn -exec rm -rf {} \\;`;
`tar -czf $project.tar.gz $project/`;
`rm -rf $project/`;
[tags]source,sourceforge,project,package,perl,script,svn[/tags]
./configure --prefix=/usr/local/mysql --localstatedir=/var/lib/mysql --with-mysqld-user=mysql --with-unix-socket-path=/tmp/mysql.sock --without-comment --without-debug --without-bench make make install cp support-files/my-medium.cnf /etc/my.cnf chown root:sys /etc/my.cnf chmod 644 /etc/my.cnf chown -R root:mysql /usr/local/mysql chown mysql:mysql /var/lib/mysql ./scripts/mysql_install_db cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe & /usr/local/mysql/bin/mysql
./configure --prefix=/usr/local/apache --enable-so --enable-cgi--enable-info --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic make make install
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --disable-debug --enable-ftp --enable-inline-optimization --enable-magic-quotes --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars --enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext --with-mysql=/usr/local/mysql --with-regex=system --with-xml --with-zlib-dir=/usr/lib --with-gettext --with-gdbm make make install cp -p php.ini-recommended /usr/local/php/php.ini
httpd.conf php.ini