Patchwork [PATCHv2] python: remove smtpd.py

login
register
mail settings
Submitter Gustavo Zacarias
Date May 6, 2013, 11:55 a.m.
Message ID <1367841342-2564-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/241624/
State Accepted
Headers show

Comments

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
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

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
 #