[PATHCH] bsd.port.mk: new variable DFOSVERSION

看板DFBSD_submit作者時間21年前 (2004/08/14 07:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
DragonFlyBSD `lies' about its OSVERSION, making it needlessly difficult for ports to support it natively. The attached patch should work in theory for ports security/portaudit sysutils/pkg_install-devel although I had no time to test it fully. -Oliver Index: bsd.port.mk =================================================================== RCS file: /home/dcvs/src/share/mk/bsd.port.mk,v retrieving revision 1.16 diff -u -r1.16 bsd.port.mk --- bsd.port.mk 10 Aug 2004 10:58:37 -0000 1.16 +++ bsd.port.mk 13 Aug 2004 22:50:00 -0000 @@ -5,6 +5,10 @@ DFPORTSDIR?= /usr/dfports PORTPATH!= /usr/bin/relpath ${PORTSDIR} ${.CURDIR} +.if !defined(DFOSVERSION) +DFOSVERSION!= /sbin/sysctl -n kern.osreldate +.endif + # Temporary Hack # OSVERSION ?= 480102
文章代碼(AID): #117KXY00 (DFBSD_submit)
文章代碼(AID): #117KXY00 (DFBSD_submit)