LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-26-2010, 09:00 PM   #1
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123

Rep: Reputation: 19
problem creating rkhunter 1.3.6 package using slackbuild


hello.after i reinstalled slackware 13.0(i have a problem with 13.1 about my wireless), i try to build a package of rkhunter using SlackBuild.since the link point now to rkhunter 1.3.6 instead of 1.3.4, i downloaded the 1.3.6 and change the line in the rkhunter.Slackbuild
Code:
VERSION=${VERSION:-1.3.4}
into
Code:
VERSION=${VERSION:-1.3.6}
But when i try to execute
Code:
~#./rkhunter.SlackBuild
there is an errors that says
Code:
Hunk #1 FAILED at 171
Hunk #2 FAILED at 227
2 out of 2 hunks FAILED -- saving rejects to file installer.sh.rej
can i correct the errors so that i can create the package?how?thanks in advance.
 
Old 05-26-2010, 09:21 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
Well, the original link to 1.3.4 still works...so you could just use that. It's hosted at SourceForge if you can't get to it via the direct link. If you do want to use 1.3.6 then you'd have to use the patch below instead of the one on slackbuilds.org.

install_path_fix.diff:
Code:
diff -Nur rkhunter-1.3.6.orig/installer.sh rkhunter-1.3.6/installer.sh
--- rkhunter-1.3.6.orig/installer.sh	2009-11-27 18:02:57.000000000 -0500
+++ rkhunter-1.3.6/installer.sh	2010-05-26 22:13:46.872574175 -0400
@@ -155,7 +155,7 @@
 			;;
 		RPM)
 			if [ -n "${RPM_BUILD_ROOT}" ]; then
-				PREFIX="${RPM_BUILD_ROOT}/usr/local"
+				PREFIX="${RPM_BUILD_ROOT}/usr"
 			else
 				echo "RPM installation chosen but \$RPM_BUILD_ROOT variable not found: exiting."
 				exit 1
@@ -235,7 +235,7 @@
 
 			BINDIR="${PREFIX}/bin"
 			VARDIR="${RPM_BUILD_ROOT}/var"
-			SHAREDIR="${PREFIX}/share"
+			SHAREDIR="${PREFIX}"
 			;;
 		DEB)
 			BINDIR="${PREFIX}/bin"
But although that patches the file correctly (as in it patches it in the manner that 1.3.4 was patched) I have not built it so although it will probably work keep that in mind. More specifically, 1.3.6's installer.sh includes options for TGZ files instead of the RPM options that the current SlackBuild is using (but still creating a TGZ file out of), so a rewrite of the SlackBuild for 1.3.6 is probably in order assuming the TGZ options are more suitable for creating a Slackware package.
 
Old 05-26-2010, 09:37 PM   #3
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123

Original Poster
Rep: Reputation: 19
Thanks T3slider.i successfully build the package for rkhunter 1.3.6 after using the patch that you suggested.Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] x64 Mozilla Sunbird slackbuild/package brooky9999 Slackware 12 04-27-2010 08:51 AM
Anyone got a slackbuild/package for TigerVNC? (Not TightVNC!) uppman Slackware 2 04-16-2010 06:42 AM
updating slackbuild package in slackware 12.2 jrecortel Slackware 1 02-06-2009 06:23 PM
mplayerplug-in 3.55 - Looking for slackbuild or package ErV Slackware 9 12-22-2008 09:35 PM
help w/ creating a SlackBuild for icecat empcrono Slackware 7 10-29-2008 03:43 PM


All times are GMT -5. The time now is 11:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration