Author Topic: windowmaker porting help!  (Read 1313 times)

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
windowmaker porting help!
« on: August 24, 2011, 10:17:11 am »

I'm just trying to compile something for windowmaker and when I run make I get
Code: [Select]
Makefile:53 *** missing separator Stop

here's the makefile :)
Code: [Select]

# $OpenBSD: Makefile,v 1.1.1.1 2010/12/23 12:39:14 stephan Exp $

COMMENT-main =  penetration testing resources
COMMENT-mysql = penetration testing resources (mysql backend)
COMMENT-pgsql = penetration testing resources (postgres backend)
CATEGORIES =    security

V =             3.5.0
PKGNAME-main =  metasploit-${V}
PKGNAME-mysql = metasploit-mysql-${V}
PKGNAME-pgsql = metasploit-pgssql-${V}
DISTNAME =      framework-${V}

EXTRACT_SUFX =  .tar.bz2

HOMEPAGE =      http://www.metasploit.com/
MASTER_SITES =  ${HOMEPAGE}/releases/

MAINTAINER =    Stephan A. Rickauer <stephan@openbsd.org>

# 3-clause BSD
PERMIT_PACKAGE_CDROM =  Yes
PERMIT_PACKAGE_FTP =    Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP =  Yes

MODULES =       lang/ruby
PKG_ARCH =      *
NO_BUILD =      Yes
NO_REGRESS =    Yes

MULTI_PACKAGES =-main -mysql -pgsql

RUN_DEPENDS-main =      ${MODRUBY_ICONV_DEPENDS} \
                        devel/ruby-gems \
                        devel/nasm \
                        net/nmap \
                        net/ruby-pcaprub-msf
RUN_DEPENDS-mysql =     databases/ruby-mysql \
                        security/metasploit
RUN_DEPENDS-pgsql =     databases/ruby-postgres \
                        security/metasploit

SCRIPTS =       msfcli msfconsole msfd msfelfscan msfencode \
                msfmachscan msfopcode msfpayload msfpescan

WRKDIST =       ${WRKDIR}/msf3
SHAREDIR =      ${PREFIX}/share/metasploit
DOCDIR =        ${PREFIX}/share/doc/metasploit

do-install:
        ${INSTALL_SCRIPT_DIR} ${SHAREDIR}
.for s in ${SCRIPTS}
        ${MODRUBY_RUBY_ADJ} ${WRKDIST}/$s
        ${INSTALL_SCRIPT} ${WRKDIST}/$s ${SHAREDIR}
        @ln -s ../share/metasploit/$s ${PREFIX}/bin/$s
.endfor
.for i in tools data lib modules plugins
        @cp -R ${WRKDIST}/$i ${SHAREDIR}
.endfor
        @cp -R ${WRKDIST}/documentation ${DOCDIR}
        @find ${SHAREDIR} ${DOCDIR} -type d -name ".svn" | xargs rm -R

.include <bsd.port.mk>
I know someone was gonna do a porting to windowmaker tutorial but I don't think they've done it yet :P

Thanks

h4ck3rpr0n3

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3060
  • Reputation: 130
  • Developer, Genius :P :P
  • Badges:
  • Computers: HP Pavillion g7: Windows 7, BT5 R1, Ubuntu 12.04, Windows 8, Linux Mint
  • iDevices: ipod touch 3g, ipod touch 2g
Re: windowmaker porting help!
« Reply #1 on: August 24, 2011, 02:01:48 pm »
Usually if such a error appears it is the mistake of the one who made the makefile.
I will tell you what ***missing seperator means
first
*** means fatal error(that is the make can't continue and exits)
seperator is any of the seperators (:, =, TAB characters, etc) is missing.make looks for various kinds of separators to help it decide what kind of commandline it's seeing.
So I think that you understood the meaning of the missing seperator one.
The usual approach to solve the problem is by pressing Tab at the line number you mentioned.
goals:
[] get developer status
[X] get 30+ karma
[X] get to hero member
[X] become part of the staff

languages i know:
JavaScript
CSS
HTML
PHP
C
C++
Cython
Python

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: windowmaker porting help!
« Reply #2 on: August 24, 2011, 02:58:42 pm »
Line 53 is
Code: [Select]
.for s in ${SCRIPTS} 
and I'm not really sure what to add :S

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: windowmaker porting help!
« Reply #3 on: August 24, 2011, 03:03:02 pm »
try adding a ':' at the end of that line.  I don't know if that will help, but it may. 

Ginger

  • Dev Team Member
  • Hero Member
  • *****
  • Posts: 610
  • Reputation: 6
    • PwnDevTeam!
  • Computers: Forgot model but Dell Inspirion Tower (6gb ram, Quad core, 1tb hdd, 1gb graphics)
  • iDevices: iPod Touch 4G 8GB And iPod Nano 1G 1Gb
Re: windowmaker porting help!
« Reply #4 on: August 24, 2011, 03:46:07 pm »
Code: [Select]

Gingers-iPod-P:~ root# cd ../mobile/ports/security/metasploit
Gingers-iPod-P:/var/mobile/ports/security/metasploit root# make
Makefile:59: warning: overriding commands for target `.for'
Makefile:54: warning: ignoring old commands for target `.for'
Makefile:59: warning: overriding commands for target `in'
Makefile:54: warning: ignoring old commands for target `in'
/share/metasploit
make: /share/metasploit: Command not found
make: *** [do-install] Error 127
any suggestion?

Don't like seeing ads? Click here to register!

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: windowmaker porting help!
« Reply #5 on: August 25, 2011, 05:08:11 pm »
.for s in ${SCRIPTS}; do