View previous topic :: View next topic |
Author |
Message |
Cheikh Member
Joined: 11 Jun 2011 Posts: 25
|
Posted: Sat Jun 11, 2011 8:28 pm Post subject: Recompile Software |
|
|
I have been using SMS for a week now and I am very grateful to the developers.
I am trying to recompile a few software, so I am checking in to see if there is a package build that I need to edit to recompile with the extra features I need or is it just a matter of me downloading the package and recompile and install. Also please let me know anything else in this regard I may need to know.
Thanks
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sat Jun 11, 2011 8:47 pm Post subject: |
|
|
What exactly you want to recompile?
If you want to build a new package just check if there is a slackbuild available at slackware or at slackbuilds.org or slacky.eu or just google for it.
Or even if a package it's available already from 3rd part repos.
If not just look at any slackbuild and you will see some common variables such as
Code: |
ARCH=$( uname -m )
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
|
and upon configuring
Code: | CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
|
Depending on the package you can run
For a full list of options, and of course read the documentation of each package.
Another tip is always building packages, so you will not having issues while upgrading or removing packages.
If you need any help, let me know.
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
Cheikh Member
Joined: 11 Jun 2011 Posts: 25
|
Posted: Sat Jun 11, 2011 10:09 pm Post subject: |
|
|
Thanks for the quick reply I am trying to rebuild vsftpd to have support for libpam at least when I did last night ldd /usr/sbin/vsftpd I did not see "libpam" included in the output. I am trying vsftpd with virtual users. My users will be stored in text file and use db_load or have the users in Postgresql. I have tried both already with the default installed of vsftpd but they dont work at all and when I watch my Postgresql log I dont see no attempt from PAM to connect to the database, so I suspect I need to rebuild vsftpd with --libpam. Also I want postfix to have support for Postgresql which I will need to rebuild. I would prefer to recompile packages than downloading 3rd party.
Regards,
Cheikh
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sun Jun 12, 2011 10:14 am Post subject: |
|
|
Assuming you have already upgrade util-linux from extra/PAM for having full pam support,
To build vsftpd with pam download slackbuild from slackware
http://slackware.cs.utah.edu/pub/slackware/slackware-current/source/n/vsftpd/
and edit slackbuild as
Code: | zcat $CWD/vsftpd.conf.diff.gz | patch -p1 --verbose || exit 1
patch -p0 < $CWD/pam.diff |
pam.diff
Code: | --- builddefs.h 2011-06-12 09:59:07.000000000 +0300
+++ builddefs.h.new 2011-06-12 10:07:06.000000000 +0300
@@ -2,7 +2,7 @@
#define VSF_BUILDDEFS_H
#define VSF_BUILD_TCPWRAPPERS
-#undef VSF_BUILD_PAM
+#define VSF_BUILD_PAM
#define VSF_BUILD_SSL
#endif /* VSF_BUILDDEFS_H */ |
To build postfix with postgress I would recommend to use ldap for virtual mail users or mysql but if you insist , install postgresql from extra/openbravo or build your own , and build postfix with
Code: | make makefiles CCARGS="-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_SSL -I/usr/include/openssl -DHAS_LDAP -I/usr/include -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql" AUXLIBS="-L/usr/lib/sasl2 -lsasl2 -L/usr/lib -lssl -lcrypto -lldap -lz -lm -llber -L/usr/lib/mysql -lmysqlclient -L/usr/lib/postgresql -lpq" |
You can remove the mysql entries if you like.
gerasimos_h
Description: |
|
 Download |
Filename: |
pam.diff |
Filesize: |
282 Bytes |
Downloaded: |
3021 Time(s) |
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
Abrams Guest
|
Posted: Tue Sep 27, 2011 12:31 pm Post subject: |
|
|
Hats off to the developer of Superb Mini Server (SMS) they have done a remarkable job. I am using SMS, Right now I am just looking into all the feature and trying to understand their design goal. Then only I will go for recompilation and testing of the software provided with the SMS. I am quite new to SMS, it will take some time to get used to it. After all SMS is another Linux distribution the basic feature of SMS will be same as of other Linux distribution.
|
|
Back to top |
|
|