[PATCHv2] python: remove smtpd.py

Submitted by Gustavo Zacarias on May 6, 2013, 11:55 a.m.

Details

Message ID 1367841342-2564-1-git-send-email-gustavo@zacarias.com.ar
State Accepted
Headers show

Commit Message

Gustavo Zacarias May 6, 2013, 11:55 a.m.
It's mostly sample code, normally not used, and has a bad shebang line.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/python/python.mk | 7 +++++++
 1 file changed, 7 insertions(+)

--
1.8.1.5

Comments

Peter Korsgaard May 6, 2013, 11:59 a.m.
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> It's mostly sample code, normally not used, and has a bad
 Gustavo> shebang line.

 Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

Patch hide | download patch | download mbox

diff --git a/package/python/python.mk b/package/python/python.mk
index 4876dd8..b942854 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -142,6 +142,13 @@  endef

 PYTHON_POST_INSTALL_STAGING_HOOKS += PYTHON_FIXUP_LIBDIR

+# Bad shebang, normally not used
+define PYTHON_REMOVE_SMTPD
+	rm -f $(TARGET_DIR)/usr/bin/smtpd.py
+endef
+
+PYTHON_POST_INSTALL_TARGET_HOOKS += PYTHON_REMOVE_SMTPD
+
 #
 # Development files removal
 #