3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=c4867d72c41564318e0107745eb7a0f2
10 PKG_SOURCE_URL
:=@SF
/setserial
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,SETSERIAL
,setserial
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
33 --datadir=/usr
/share \
34 --includedir=/usr
/include \
35 --infodir=/usr
/share
/info \
37 --libexecdir
=/usr
/lib \
38 --localstatedir
=/var \
39 --mandir=/usr
/share
/man \
42 $(DISABLE_LARGEFILE
) \
47 $(PKG_BUILD_DIR
)/.built
:
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 install -d
-m0755
$(IDIR_SETSERIAL
)/etc
/init.d
54 install -m0755 .
/files
/serial.init
$(IDIR_SETSERIAL
)/etc
/init.d
/S15serial
55 install -d
-m0755
$(IDIR_SETSERIAL
)/usr
/sbin
56 install -m0755
$(PKG_BUILD_DIR
)/setserial
$(IDIR_SETSERIAL
)/usr
/sbin
/
57 $(RSTRIP
) $(IDIR_SETSERIAL
)
58 $(IPKG_BUILD
) $(IDIR_SETSERIAL
) $(PACKAGE_DIR
)
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 rm -f
$(PKG_BUILD_DIR
)/.built