Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

ebuild help for logdog.pl

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
sirsycho
n00b
n00b
Posts: 3
Joined: Sun Aug 21, 2005 12:29 am

ebuild help for logdog.pl

  • Quote

Post by sirsycho » Sun Sep 04, 2005 2:58 pm

Hello,

I am a newbie to ebuild building and have been trying to get this perl script installed via ebuild. I have searched the forums and tried the stuff I've found (in addition to the official ebuild howto). I have a feeling this might be a problem related to the Makefile in the download package, is there a way to work around that until I can contact the developer or am I completely wrong.

My ebuild and errors...

Code: Select all

DESCRIPTION=" A daemon for monitoring syslogd messages and alerting administrators"

HOMEPAGE="http://caspian.dotconf.net/menu/Software/LogDog/"

SRC_URI="http://caspian.dotconf.net/menu/Software/LogDog/${PN}-v${PV}-RC5.tar.gz"

LICENSE="as-is"

SLOT="0"

KEYWORDS="x86"

IUSE=""

DEPEND=""

RDEPEND="dev-lang/perl"

S=${WORKDIR}/${PN}-v${PV}-RC5

src_unpack() {
        unpack ${A}
        cd ${WORKDIR}/logdog-v2.00-RC5
}


src_install() {
        make install  || die
}

ERROR:

Code: Select all

 
# ebuild /usr/local/portage/app-admin/logdog/logdog-2.00.ebuild install
>>> Downloading http://gentoo.netnitco.net/distfiles/logdog-v2.00-RC5.tar.gz
--09:46:03--  http://gentoo.netnitco.net/distfiles/logdog-v2.00-RC5.tar.gz
           => `/usr/portage/distfiles/logdog-v2.00-RC5.tar.gz'
Resolving gentoo.netnitco.net... 216.176.132.235
Connecting to gentoo.netnitco.net[216.176.132.235]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:46:03 ERROR 404: Not Found.

>>> Downloading http://caspian.dotconf.net/menu/Software/LogDog/logdog-v2.00-RC5.tar.gz
--09:46:03--  http://caspian.dotconf.net/menu/Software/LogDog/logdog-v2.00-RC5.tar.gz
           => `/usr/portage/distfiles/logdog-v2.00-RC5.tar.gz'
Resolving caspian.dotconf.net... 69.20.172.62
Connecting to caspian.dotconf.net[69.20.172.62]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15,039 [application/x-tar]

100%[====================================================================================================================>] 15,039        48.97K/s

09:46:03 (48.82 KB/s) - `/usr/portage/distfiles/logdog-v2.00-RC5.tar.gz' saved [15,039/15,039]

>>> md5 files   ;-) logdog-2.00.ebuild
>>> md5 files   ;-) files/digest-logdog-2.00
>>> md5 src_uri ;-) logdog-v2.00-RC5.tar.gz
>>> Unpacking source...
>>> Unpacking logdog-v2.00-RC5.tar.gz to /var/tmp/portage/logdog-2.00/work
>>> Source unpacked.
Installing LogDog...
      install   logdog.pl       /usr/local/sbin
ACCESS DENIED  open_wr:   /usr/local/sbin/logdog.pl
install: cannot create regular file `/usr/local/sbin/logdog.pl': Permission denied
make: *** [default] Error 1

!!! ERROR: app-admin/logdog-2.00 failed.
!!! Function src_compile, Line 556, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-admin_-_logdog-2.00-21854.log"

open_wr:   /usr/local/sbin/logdog.pl
--------------------------------------------------------------------------------

Thanks in advance...
Top
commonloon
Tux's lil' helper
Tux's lil' helper
Posts: 133
Joined: Tue Apr 13, 2004 7:19 pm
Location: Marin, CA

  • Quote

Post by commonloon » Mon Sep 05, 2005 1:53 am

A couple of sanity check questions:

1. Are you root?

2. Does /usr/local/{sbin,bin} exist?
Calling fly fishing a hobbie is like calling brain surgery a job.
Top
sirsycho
n00b
n00b
Posts: 3
Joined: Sun Aug 21, 2005 12:29 am

  • Quote

Post by sirsycho » Mon Sep 05, 2005 1:27 pm

1. Are you root?
Yes, I am.

2. Does /usr/local/{sbin,bin} exist?
Yes both exist.

Thanks again...
Top
xoomix
Guru
Guru
User avatar
Posts: 489
Joined: Thu Jan 02, 2003 7:30 am

--

  • Quote

Post by xoomix » Fri Sep 09, 2005 12:37 pm

BUMP
Top
elmicha
n00b
n00b
Posts: 31
Joined: Sat Aug 02, 2003 11:15 pm
Location: Bonn, Germany

  • Quote

Post by elmicha » Fri Sep 09, 2005 3:09 pm

An ebuild (even if it is your own) should not write into /usr/local. Change the ebuild so that it puts the binaries into /usr/bin or /usr/sbin. If the Makefile doesn't have parameters that you can change when calling make, have the ebuild use sed to change the Makefile.
Top
commonloon
Tux's lil' helper
Tux's lil' helper
Posts: 133
Joined: Tue Apr 13, 2004 7:19 pm
Location: Marin, CA

  • Quote

Post by commonloon » Sun Sep 11, 2005 1:07 pm

What does the makefile look like? Have you checked out:

http://www.gentoo.org/proj/en/devrel/ha ... #doc_chap3

... D,S,src_install, install vs einstall

ps: not necessarily bad to install to /usr/local if its a "Local" package (http://www.pathname.com/fhs/). Of course, there are complications in that $PATH for example may not contain it.
Calling fly fishing a hobbie is like calling brain surgery a job.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic