Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/openntpd

Buildroot ulf at uclibc.org 3 participants 3 messages Aug 19, 2007 – Aug 20, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-08-19 14:13:08 -0700 (Sun, 19 Aug 2007) New Revision: 19569

Log:
openntpd cleanup

Modified:
trunk/buildroot/package/openntpd/openntpd.mk

Changeset:
Modified: trunk/buildroot/package/openntpd/openntpd.mk
===================================================================

buildroot/package/openntpd/openntpd.mk +10 -6
@@ -29,9 +29,11 @@
 		--build=$(GNU_HOST_NAME) \
 		--prefix=/usr \
 		--sysconfdir=/etc \
+		--datadir=/usr/share \
+		--mandir=/usr/share/man \
 		--with-builtin-arc4random \
-	);
-	touch $(OPENNTPD_DIR)/.configured;
+	)
+	touch $@
 
 $(OPENNTPD_DIR)/$(OPENNTPD_BINARY): $(OPENNTPD_DIR)/.configured
 	$(MAKE) CC=$(TARGET_CC) -C $(OPENNTPD_DIR)
@@ -45,22 +47,24 @@
 	#	ntpd.c buffer.c log.c imsg.c ntp.c ntp_msg.c y.tab.c config.c \
 	#	server.c client.c sensors.c util.c ; \
 	#)
-	$(STRIP) -s $@
+	$(STRIP) $@
 
 $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY): $(OPENNTPD_DIR)/$(OPENNTPD_BINARY)
 	rm -f $(TARGET_DIR)/etc/ntpd.conf
 	$(MAKE) DESTDIR=$(TARGET_DIR) STRIP_OPT="" -C $(OPENNTPD_DIR) install
 	-$(STRIP) $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY)
 	cp -af $(OPENNTPD_DIR)/ntpd.conf $(TARGET_DIR)/etc/ntpd.conf
-	rm -Rf $(TARGET_DIR)/usr/man
+	# Why in earth do we wipe the whole man directory here?
+	#rm -Rf $(TARGET_DIR)/usr/man
 
 ntpd: uclibc $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY)
 
 ntpd-source: $(DL_DIR)/$(OPENNTPD_SOURCE)
 
 ntpd-clean:
-	-$(MAKE) DESTDIR=$(TARGET_DIR) -C $(OPENNTPD_DIR) uninstall
-	rm -f $(TARGET_DIR)/etc/ntpd.conf $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY)
+	rm -f $(addprefix $(TARGET_DIR)/,etc/ntpd.conf \
+					 usr/share/man/man?/ntpd.conf* \
+					 $(OPENNTPD_TARGET_BINARY))
 	-$(MAKE) -C $(OPENNTPD_DIR) clean
 
 ntpd-dirclean:
#1 lore raw
Quoted 34 lines · ulf at uclibc.org

Author: ulf
Date: 2007-08-19 14:13:08 -0700 (Sun, 19 Aug 2007) New Revision: 19569

Log:
openntpd cleanup

Modified:
trunk/buildroot/package/openntpd/openntpd.mk

Changeset:
Modified: trunk/buildroot/package/openntpd/openntpd.mk
===================================================================

buildroot/package/openntpd/openntpd.mk +4 -2
@@ -29,9 +29,11 @@
 		--build=$(GNU_HOST_NAME) \
 		--prefix=/usr \
 		--sysconfdir=/etc \
+		--datadir=/usr/share \
+		--mandir=/usr/share/man \
 		--with-builtin-arc4random \
-	);
-	touch $(OPENNTPD_DIR)/.configured;
+	)
+	touch $@
 

$(OPENNTPD_DIR)/$(OPENNTPD_BINARY): $(OPENNTPD_DIR)/.configured

	$(MAKE) CC=$(TARGET_CC) -C $(OPENNTPD_DIR)
buildroot/package/openntpd/openntpd.mk +0 -0
@@ -45,22 +47,24 @@
 	#	ntpd.c buffer.c log.c imsg.c ntp.c ntp_msg.c y.tab.c config.c \
 	#	server.c client.c sensors.c util.c ; \
 	#)

buildroot/package/openntpd/openntpd.mk line 57

Quoted 10 lines
buildroot/package/openntpd/openntpd.mk +2 -2
-	$(STRIP) -s $@
+	$(STRIP) $@
 
 $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY): $(OPENNTPD_DIR)/$(OPENNTPD_BINARY)
 	rm -f $(TARGET_DIR)/etc/ntpd.conf
 	$(MAKE) DESTDIR=$(TARGET_DIR) STRIP_OPT="" -C $(OPENNTPD_DIR) install
 	-$(STRIP) $(TARGET_DIR)/$(OPENNTPD_TARGET_BINARY)
 	cp -af $(OPENNTPD_DIR)/ntpd.conf $(TARGET_DIR)/etc/ntpd.conf
-	rm -Rf $(TARGET_DIR)/usr/man
+	# Why in earth do we wipe the whole man directory here?

The phrase is "why on earth", i think.

We do that in alot of places. I'd like to introduce a BR2_TARGET_MANPAGES
BR2_TARGET_INFOPAGES
sometime in the future.. Feel free to go ahead and add this.

cheers,

#2 lore raw
Quoted 3 lines · Bernhard Fischer

buildroot/package/openntpd/openntpd.mk line 57

Quoted 1 line
buildroot/package/openntpd/openntpd.mk +1 -0
+	# Why in earth do we wipe the whole man directory here?

The phrase is "why on earth", i think.

Right, thanks. Should I submit a patch? :)

Quoted 4 lines

We do that in alot of places. I'd like to introduce a BR2_TARGET_MANPAGES
BR2_TARGET_INFOPAGES
sometime in the future.. Feel free to go ahead and add this.

I like that.

Cheers,

Signature · 1 line
Cristian