Hi Vladislav Korotnev

attach is the 'Makefile' I make it works fine in OpenWrt.
you can look this wiki page for more info about create package in openwrt:
  http://en.qi-hardware.com/wiki/Porting_programs



---
the http://packages.debian.org/... should not the upstream URL
maybe this is the upstream:
 http://ftnapps.sourceforge.net/crashmail.html

BTW there is some compile error. you can try to fix it:
...
mipsel-openwrt-linux-uclibc-gcc -c cmnllib.c -o cmnllib.o
cmnllib.c:1: note: someone does not honour COPTS correctly, passed 0 times
cmnllib.c:5:22: error: oslib/os.h: No such file or directory
...


On 06/01/2011 03:06 AM, Vladislav Korotnev wrote:
> Hello everyone,
> I have got a program to build with the OpenWRT toolchain, but now I need to 
> make it into a package.
> I created a folder in /root/openwrt-xburst/package with name 'crashmail'.
> Then I tried to write a makefile:
> 
....
> 
> However, I think it's incorrect and I can't understand how do I need to write 
> this makefile.
> I'm a noob.
> Could anyone please help me?
> Thanks!
> ~ Vladislav Korotnev

-- 
Best Regards
Xiangfu
-- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml --
include $(TOPDIR)/rules.mk

PKG_NAME:=crashmail
PKG_VERSION:=0.71
PKG_RELEASE:=1

PKG_BUILD_DIR:=$(BUILD_DIR)/crashmail-$(PKG_VERSION)
PKG_SOURCE:=crashmail_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/c/crashmail
PKG_MD5SUM:=8dbfa277fec07f477b67b6c7944432bb

include $(INCLUDE_DIR)/package.mk

define Package/crashmail
        SECTION:=base
        CATEGORY:=Network
        TITLE:=CrashMail II
        URL:=http://packages.debian.org/ru/squeeze/crashmail
endef

define Package/crashmail/description
CrashMail II is basically a more portable version of CrashMail, a FidoNet 
tosser for Amiga computers.
endef

define Build/Compile
        $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR)/src \
                $(MAKE_FLAGS) linux
endef

define Package/crashmail/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,crashmail))
_______________________________________________
Qi Hardware Discussion List
Mail to list (members only): [email protected]
Subscribe or Unsubscribe: 
http://lists.en.qi-hardware.com/mailman/listinfo/discussion

Reply via email to