freewrt_1_0
freewrt_2_0
|
Last change
on this file since ca629a6 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago |
|
major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent
git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= ser2net
|
|---|
| 10 | PKG_VERSION:= 2.3
|
|---|
| 11 | PKG_RELEASE:= 1
|
|---|
| 12 | PKG_MD5SUM:= 5f83a3e8aec18331cb61069dccdfba47
|
|---|
| 13 |
|
|---|
| 14 | PKG_SOURCE_URL:= @SF/ser2net/
|
|---|
| 15 | PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 16 |
|
|---|
| 17 | include $(TOPDIR)/mk/package.mk
|
|---|
| 18 |
|
|---|
| 19 | $(eval $(call PKG_template,SER2NET,ser2net,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 20 |
|
|---|
| 21 | $(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
|
|---|
| 22 | (cd $(WRKBUILD); \
|
|---|
| 23 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 24 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 25 | ./configure \
|
|---|
| 26 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --build=$(GNU_HOST_NAME) \
|
|---|
| 29 | --prefix=/usr \
|
|---|
| 30 | --sysconfdir=/etc \
|
|---|
| 31 | );
|
|---|
| 32 | touch $@
|
|---|
| 33 |
|
|---|
| 34 | $(WRKBUILD)/.built:
|
|---|
| 35 | rm -rf $(WRKINST)
|
|---|
| 36 | mkdir -p $(WRKINST)
|
|---|
| 37 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 38 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 39 | DESTDIR="$(WRKINST)" \
|
|---|
| 40 | all install
|
|---|
| 41 | touch $@
|
|---|
| 42 |
|
|---|
| 43 | $(IPKG_SER2NET):
|
|---|
| 44 | install -d -m0755 $(IDIR_SER2NET)/usr/sbin
|
|---|
| 45 | cp -fpR $(WRKINST)/usr/sbin/ser2net $(IDIR_SER2NET)/usr/sbin
|
|---|
| 46 | install -d -m0755 $(IDIR_SER2NET)/etc
|
|---|
| 47 | cp -fpR $(WRKBUILD)/ser2net.conf $(IDIR_SER2NET)/etc
|
|---|
| 48 | $(RSTRIP) $(IDIR_SER2NET)
|
|---|
| 49 | $(IPKG_BUILD) $(IDIR_SER2NET) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.