How to setup Carddav and Caldav server?

What is the most straight forward way to setup a server for contacts and calendars? I searched openwrt packages but haven’t found anything. Other forums discuss owncloud. Is this an option for? Any other ideas?